Compare commits
3 Commits
master
...
dev_基于6.8.
Author | SHA1 | Date | |
---|---|---|---|
8d0b3da7ff | |||
db05ff116e | |||
bf8268712b |
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="colorPrimary">#FF8D41</color>
|
<color name="colorPrimary">#2ED0FF</color>
|
||||||
<color name="colorPrimaryDark">#FF8D41</color>
|
<color name="colorPrimaryDark">#2ED0FF</color>
|
||||||
<color name="colorAccent">#FF8D41</color>
|
<color name="colorAccent">#2ED0FF</color>
|
||||||
|
|
||||||
<!--fulive demo 主配色-->
|
<!--fulive demo 主配色-->
|
||||||
<color name="primary_background">#050F14</color>
|
<color name="primary_background">#050F14</color>
|
||||||
|
@ -25,10 +25,10 @@
|
|||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:screenOrientation="portrait" />
|
android:screenOrientation="portrait" />
|
||||||
|
|
||||||
<provider
|
<!-- <provider
|
||||||
android:name="com.facebook.FacebookContentProvider"
|
android:name="com.facebook.FacebookContentProvider"
|
||||||
android:authorities="com.facebook.app.FacebookContentProvider2011402032399020"
|
android:authorities="com.facebook.app.FacebookContentProvider2011402032399020"
|
||||||
android:exported="true" />
|
android:exported="true" />-->
|
||||||
<receiver
|
<receiver
|
||||||
android:name="com.yunbao.share.receiver.TwitterResultReceiver"
|
android:name="com.yunbao.share.receiver.TwitterResultReceiver"
|
||||||
android:exported="false">
|
android:exported="false">
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<string name="com.twitter.sdk.android.CONSUMER_SECRET">aq0eV4R1pqMK_AAeKRWnjPr7ErGMGgTPGgZJdm73WeRY-Kluws</string>
|
<string name="com.twitter.sdk.android.CONSUMER_SECRET">aq0eV4R1pqMK_AAeKRWnjPr7ErGMGgTPGgZJdm73WeRY-Kluws</string>
|
||||||
|
|
||||||
<string name="dialog_share_title">分享</string>
|
<string name="dialog_share_title">分享</string>
|
||||||
<string name="dialog_share_info">快來 PDLIVE觀看%s直播,認識更多有趣的朋友吧!</string>
|
<string name="dialog_share_info">快來 HOSO觀看%s直播,認識更多有趣的朋友吧!</string>
|
||||||
<string name="dialog_share_app_facebook" >Facebook</string>
|
<string name="dialog_share_app_facebook" >Facebook</string>
|
||||||
<string name="dialog_share_app_line" >Line</string>
|
<string name="dialog_share_app_line" >Line</string>
|
||||||
<string name="dialog_share_app_twitter">Twitter</string>
|
<string name="dialog_share_app_twitter">Twitter</string>
|
||||||
@ -13,6 +13,6 @@
|
|||||||
<string name="dialog_share_app_instagram" >Instagram</string>
|
<string name="dialog_share_app_instagram" >Instagram</string>
|
||||||
|
|
||||||
<string name="dialog_invite_title">邀請好友</string>
|
<string name="dialog_invite_title">邀請好友</string>
|
||||||
<string name="dialog_invite_info">快來 PDLIVE觀看直播,認識更多有趣的朋友吧!</string>
|
<string name="dialog_invite_info">快來 HOSO觀看直播,認識更多有趣的朋友吧!</string>
|
||||||
<string name="dialog_share_copy">複製</string>
|
<string name="dialog_share_copy">複製</string>
|
||||||
</resources>
|
</resources>
|
@ -9,8 +9,8 @@
|
|||||||
<string name="dialog_share_app_messenger">Messenger</string>
|
<string name="dialog_share_app_messenger">Messenger</string>
|
||||||
<string name="dialog_share_app_instagram" >Instagram</string>
|
<string name="dialog_share_app_instagram" >Instagram</string>
|
||||||
<string name="dialog_share_title">Share</string>
|
<string name="dialog_share_title">Share</string>
|
||||||
<string name="dialog_share_info">Come and watch %s live on PDLIVE and meet more interesting people!</string>
|
<string name="dialog_share_info">Come and watch %s live on HOSO and meet more interesting people!</string>
|
||||||
<string name="dialog_invite_title">Invite Friends</string>
|
<string name="dialog_invite_title">Invite Friends</string>
|
||||||
<string name="dialog_invite_info">Come to PDLIVE to discover more and better live streams.</string>
|
<string name="dialog_invite_info">Come to HOSO to discover more and better live streams.</string>
|
||||||
<string name="dialog_share_copy">Copy</string>
|
<string name="dialog_share_copy">Copy</string>
|
||||||
</resources>
|
</resources>
|
@ -69,11 +69,12 @@ android {
|
|||||||
exclude 'lib/armeabi-v7a/libMNN_Express.so'
|
exclude 'lib/armeabi-v7a/libMNN_Express.so'
|
||||||
//美颜
|
//美颜
|
||||||
if (rootProject.ext.manifestPlaceholders.isPluginModel) {
|
if (rootProject.ext.manifestPlaceholders.isPluginModel) {
|
||||||
|
}
|
||||||
|
//谷歌包干掉美颜
|
||||||
exclude 'lib/armeabi-v7a/libCNamaSDK.so'
|
exclude 'lib/armeabi-v7a/libCNamaSDK.so'
|
||||||
exclude 'lib/arm64-v8a/libCNamaSDK.so'
|
exclude 'lib/arm64-v8a/libCNamaSDK.so'
|
||||||
exclude 'lib/armeabi-v7a/libfuai.so'
|
exclude 'lib/armeabi-v7a/libfuai.so'
|
||||||
exclude 'lib/arm64-v8a/libfuai.so'
|
exclude 'lib/arm64-v8a/libfuai.so'
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
@ -126,8 +127,8 @@ android {
|
|||||||
variant.mergeAssetsProvider.configure {
|
variant.mergeAssetsProvider.configure {
|
||||||
doLast {
|
doLast {
|
||||||
delete(fileTree(dir: outputDir, includes: ['model/ai_bgseg_green.bundle',
|
delete(fileTree(dir: outputDir, includes: ['model/ai_bgseg_green.bundle',
|
||||||
//'model/ai_face_processor.bundle',
|
'model/ai_face_processor.bundle',//谷歌包干掉美颜
|
||||||
//'model/ai_face_processor_lite.bundle',
|
'model/ai_face_processor_lite.bundle',//谷歌包干掉美颜
|
||||||
'model/ai_hairseg.bundle',
|
'model/ai_hairseg.bundle',
|
||||||
'model/ai_hand_processor.bundle',
|
'model/ai_hand_processor.bundle',
|
||||||
'model/ai_human_processor.bundle',
|
'model/ai_human_processor.bundle',
|
||||||
@ -259,7 +260,7 @@ android {
|
|||||||
//abiFilters "arm64-v8a", "x86_64"
|
//abiFilters "arm64-v8a", "x86_64"
|
||||||
println("打包ndk 链接")
|
println("打包ndk 链接")
|
||||||
} else {
|
} else {
|
||||||
abiFilters "armeabi-v7a", "arm64-v8a"
|
abiFilters "arm64-v8a"
|
||||||
//abiFilters "arm64-v8a"
|
//abiFilters "arm64-v8a"
|
||||||
println("打包ndk其他")
|
println("打包ndk其他")
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"client_info": {
|
"client_info": {
|
||||||
"mobilesdk_app_id": "1:822566078854:android:9cafc8bca8f63076bf8407",
|
"mobilesdk_app_id": "1:822566078854:android:9cafc8bca8f63076bf8407",
|
||||||
"android_client_info": {
|
"android_client_info": {
|
||||||
"package_name": "com.newpdlive.sy"
|
"package_name": "com.yhosolive.oy"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oauth_client": [
|
"oauth_client": [
|
||||||
@ -17,7 +17,7 @@
|
|||||||
"client_id": "822566078854-8c7698l64j66ijng9bq799o5qvbguhdo.apps.googleusercontent.com",
|
"client_id": "822566078854-8c7698l64j66ijng9bq799o5qvbguhdo.apps.googleusercontent.com",
|
||||||
"client_type": 1,
|
"client_type": 1,
|
||||||
"android_info": {
|
"android_info": {
|
||||||
"package_name": "com.newpdlive.sy",
|
"package_name": "com.yhosolive.oy",
|
||||||
"certificate_hash": "e059b937bfa49d58f40fddee4c7463e03e2aae47"
|
"certificate_hash": "e059b937bfa49d58f40fddee4c7463e03e2aae47"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -25,7 +25,7 @@
|
|||||||
"client_id": "822566078854-9cej31ie42tgjeimdk691gmvkavrooa7.apps.googleusercontent.com",
|
"client_id": "822566078854-9cej31ie42tgjeimdk691gmvkavrooa7.apps.googleusercontent.com",
|
||||||
"client_type": 1,
|
"client_type": 1,
|
||||||
"android_info": {
|
"android_info": {
|
||||||
"package_name": "com.newpdlive.sy",
|
"package_name": "com.yhosolive.oy",
|
||||||
"certificate_hash": "15fc5e70cf238323bf7111c8c627803985478e87"
|
"certificate_hash": "15fc5e70cf238323bf7111c8c627803985478e87"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -33,7 +33,7 @@
|
|||||||
"client_id": "822566078854-c63gcmvkn2ctfct9eebuo0r4tiolloel.apps.googleusercontent.com",
|
"client_id": "822566078854-c63gcmvkn2ctfct9eebuo0r4tiolloel.apps.googleusercontent.com",
|
||||||
"client_type": 1,
|
"client_type": 1,
|
||||||
"android_info": {
|
"android_info": {
|
||||||
"package_name": "com.newpdlive.sy",
|
"package_name": "com.yhosolive.oy",
|
||||||
"certificate_hash": "b66dc8d21cfcf6c729577ddcf0c312b2a31ed872"
|
"certificate_hash": "b66dc8d21cfcf6c729577ddcf0c312b2a31ed872"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -41,7 +41,7 @@
|
|||||||
"client_id": "822566078854-jfpovcealtjkv6sf0338to2grv4e5i6k.apps.googleusercontent.com",
|
"client_id": "822566078854-jfpovcealtjkv6sf0338to2grv4e5i6k.apps.googleusercontent.com",
|
||||||
"client_type": 1,
|
"client_type": 1,
|
||||||
"android_info": {
|
"android_info": {
|
||||||
"package_name": "com.newpdlive.sy",
|
"package_name": "com.yhosolive.oy",
|
||||||
"certificate_hash": "38cc19306c9facee36a9224e9a4070bc0be15c7d"
|
"certificate_hash": "38cc19306c9facee36a9224e9a4070bc0be15c7d"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -6,10 +6,13 @@ import android.content.Context;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
|
import android.graphics.Matrix;
|
||||||
|
import android.graphics.RectF;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Message;
|
import android.os.Message;
|
||||||
|
import android.os.Parcelable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
@ -25,6 +28,7 @@ import androidx.appcompat.app.AppCompatActivity;
|
|||||||
import androidx.core.app.ActivityCompat;
|
import androidx.core.app.ActivityCompat;
|
||||||
import androidx.core.app.ActivityOptionsCompat;
|
import androidx.core.app.ActivityOptionsCompat;
|
||||||
import androidx.core.app.NotificationManagerCompat;
|
import androidx.core.app.NotificationManagerCompat;
|
||||||
|
import androidx.core.app.SharedElementCallback;
|
||||||
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
@ -131,8 +135,8 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
mBtnSkipVideo = findViewById(R.id.btn_skip_video);
|
mBtnSkipVideo = findViewById(R.id.btn_skip_video);
|
||||||
mBtnSkipImage.setOnClickListener(this);
|
mBtnSkipImage.setOnClickListener(this);
|
||||||
mBtnSkipVideo.setOnClickListener(this);
|
mBtnSkipVideo.setOnClickListener(this);
|
||||||
ImgLoader.display(mContext, R.mipmap.screen, mCover);
|
// ImgLoader.display(mContext, R.mipmap.screen, mCover);
|
||||||
mHandler = new Handler() {
|
mHandler = new Handler(getMainLooper()) {
|
||||||
@Override
|
@Override
|
||||||
public void handleMessage(Message msg) {
|
public void handleMessage(Message msg) {
|
||||||
switch (msg.what) {
|
switch (msg.what) {
|
||||||
@ -152,6 +156,14 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
SpUtil.getInstance().setBooleanValue("NOTIFICATION", NotificationManagerCompat.from(this).areNotificationsEnabled());
|
SpUtil.getInstance().setBooleanValue("NOTIFICATION", NotificationManagerCompat.from(this).areNotificationsEnabled());
|
||||||
|
|
||||||
|
setExitSharedElementCallback(new SharedElementCallback() {
|
||||||
|
@Override
|
||||||
|
public Parcelable onCaptureSharedElementSnapshot(View sharedElement, Matrix viewToGlobalMatrix, RectF screenBounds) {
|
||||||
|
sharedElement.setAlpha(1);
|
||||||
|
return super.onCaptureSharedElementSnapshot(sharedElement, viewToGlobalMatrix, screenBounds);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -223,8 +235,9 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
playAD(obj.getIntValue("type") == 0);
|
playAD(obj.getIntValue("type") == 0);
|
||||||
} else {
|
} else {
|
||||||
releaseVideo();
|
releaseVideo();
|
||||||
LauncherActivity.this.startActivity(new Intent(LauncherActivity.this, EntryActivity.class));
|
Bundle bundle = ActivityOptionsCompat.makeSceneTransitionAnimation(LauncherActivity.this, findViewById(R.id.app_logo), findViewById(R.id.app_logo).getTransitionName()).toBundle();
|
||||||
LauncherActivity.this.finish();
|
LauncherActivity.this.startActivity(new Intent(LauncherActivity.this, EntryActivity.class),bundle);
|
||||||
|
new Handler(getMainLooper()).postDelayed(LauncherActivity.this::finish, 1000);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
checkUidAndToken();
|
checkUidAndToken();
|
||||||
@ -267,8 +280,9 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
IMLoginManager.get(this).upDataUserInfo();
|
IMLoginManager.get(this).upDataUserInfo();
|
||||||
} else {
|
} else {
|
||||||
releaseVideo();
|
releaseVideo();
|
||||||
this.startActivity(new Intent(this, EntryActivity.class));
|
Bundle bundle = ActivityOptionsCompat.makeSceneTransitionAnimation(this, findViewById(R.id.app_logo), findViewById(R.id.app_logo).getTransitionName()).toBundle();
|
||||||
this.finish();
|
this.startActivity(new Intent(this, EntryActivity.class),bundle);
|
||||||
|
new Handler(getMainLooper()).postDelayed(this::finish,1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -415,6 +429,7 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
if (mContainer == null) {
|
if (mContainer == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
findViewById(R.id.app_logo).setVisibility(View.GONE);
|
||||||
if (isImage) {
|
if (isImage) {
|
||||||
int imgSize = mAdList.size();
|
int imgSize = mAdList.size();
|
||||||
if (imgSize > 0) {
|
if (imgSize > 0) {
|
||||||
@ -588,8 +603,9 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
forwardMainActivity();
|
forwardMainActivity();
|
||||||
} else {
|
} else {
|
||||||
releaseVideo();
|
releaseVideo();
|
||||||
this.startActivity(new Intent(this, EntryActivity.class));
|
Bundle bundle = ActivityOptionsCompat.makeSceneTransitionAnimation(this, findViewById(R.id.app_logo), findViewById(R.id.app_logo).getTransitionName()).toBundle();
|
||||||
this.finish();
|
this.startActivity(new Intent(this, EntryActivity.class), bundle);
|
||||||
|
new Handler(getMainLooper()).postDelayed(this::finish, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
android:id="@+id/container"
|
android:id="@+id/container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="#000" />
|
android:background="#fff" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/btn_skip_img"
|
android:id="@+id/btn_skip_img"
|
||||||
@ -53,12 +53,50 @@
|
|||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="11sp"
|
android:textSize="11sp"
|
||||||
android:visibility="invisible" />
|
android:visibility="invisible" />
|
||||||
|
<!--原来的启动页图片-->
|
||||||
<ImageView
|
<!-- <ImageView
|
||||||
android:id="@+id/cover"
|
android:id="@+id/cover"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:scaleType="centerCrop" />
|
android:scaleType="centerCrop" />-->
|
||||||
|
<!--新启动页-->
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/cover"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="342dp"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@mipmap/bg_app_launch"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/app_logo"
|
||||||
|
android:transitionName="app_logo"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:srcCompat="@mipmap/ic_app_launch_logo" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:srcCompat="@mipmap/ic_app_launch_name" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 2.8 KiB |
BIN
app/src/main/res/mipmap-hdpi/ic_launcher.webp
Normal file
After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 2.1 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher.webp
Normal file
After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 3.7 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Normal file
After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 5.7 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/bg_app_launch.webp
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_app_launch_logo.webp
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_app_launch_name.webp
Normal file
After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 7.7 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Normal file
After Width: | Height: | Size: 66 KiB |
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">PDLIVE</string>
|
<string name="app_name">HOSO</string>
|
||||||
<string name="leak_canary_test_class_name">assertk.Assert</string>
|
<string name="leak_canary_test_class_name">assertk.Assert</string>
|
||||||
</resources>
|
</resources>
|
@ -7,12 +7,12 @@ package com.yunbao.common;
|
|||||||
public class HtmlConfig {
|
public class HtmlConfig {
|
||||||
|
|
||||||
//登录即代表同意服务和隐私条款
|
//登录即代表同意服务和隐私条款
|
||||||
public static final String LOGIN_PRIVCAY = CommonAppConfig.HOST + "/index.php?g=portal&m=page&a=index&id=3";
|
public static final String LOGIN_PRIVCAY = CommonAppConfig.HOST + "/h5/page/index.html?id=727";
|
||||||
public static final String LOGIN_PRIVCAY1 = CommonAppConfig.HOST + "/index.php?g=Portal&m=Page&a=index&id=59";
|
public static final String LOGIN_PRIVCAY1 = CommonAppConfig.HOST + "/h5/page/index.html?id=726";
|
||||||
|
|
||||||
//注册用户协议
|
//注册用户协议
|
||||||
public static final String REG_PRIVCAY1 = CommonAppConfig.HOST + "/index.php?g=portal&m=page&a=index&id=2";
|
public static final String REG_PRIVCAY1 = CommonAppConfig.HOST + "/h5/page/index.php?id=2";
|
||||||
public static final String REG_PRIVCAY2 = CommonAppConfig.HOST + "/index.php?g=portal&m=page&a=index&id=3";
|
public static final String REG_PRIVCAY2 = CommonAppConfig.HOST + "/h5/page/index.php?id=3";
|
||||||
|
|
||||||
//直播间贡献榜
|
//直播间贡献榜
|
||||||
public static final String LIVE_LIST = CommonAppConfig.HOST + "/index.php?g=Appapi&m=contribute&a=index&uid=";
|
public static final String LIVE_LIST = CommonAppConfig.HOST + "/index.php?g=Appapi&m=contribute&a=index&uid=";
|
||||||
@ -33,7 +33,7 @@ public class HtmlConfig {
|
|||||||
public static final String LUCK_GIFT_TIP = CommonAppConfig.HOST + "/index.php?g=portal&m=page&a=index&id=26";
|
public static final String LUCK_GIFT_TIP = CommonAppConfig.HOST + "/index.php?g=portal&m=page&a=index&id=26";
|
||||||
|
|
||||||
//直播间玩家看到的心愿单
|
//直播间玩家看到的心愿单
|
||||||
public static final String WISHLIST_URL = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Wish&a=index";
|
public static final String WISHLIST_URL = CommonAppConfig.HOST + "/h5/wish/index.html?1=1";
|
||||||
|
|
||||||
//直播间玩家看到的转盘
|
//直播间玩家看到的转盘
|
||||||
public static final String TURNTABLE_URL = CommonAppConfig.HOST + "/Appapi/Turntable/index";
|
public static final String TURNTABLE_URL = CommonAppConfig.HOST + "/Appapi/Turntable/index";
|
||||||
@ -48,7 +48,7 @@ public class HtmlConfig {
|
|||||||
public static final String PERSONAL = CommonAppConfig.HOST + "/h5/shequ/index.html#/h5/shequ/Personal";
|
public static final String PERSONAL = CommonAppConfig.HOST + "/h5/shequ/index.html#/h5/shequ/Personal";
|
||||||
|
|
||||||
//我的徽章 右上角问号
|
//我的徽章 右上角问号
|
||||||
public static final String MEDAL_QUESTION = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Fans&a=rule&isfans=1";
|
public static final String MEDAL_QUESTION = CommonAppConfig.HOST + "/h5/fans/rule.html?isfans=1";
|
||||||
|
|
||||||
//我的明细
|
//我的明细
|
||||||
public static final String DETAIL = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Detail&a=index";
|
public static final String DETAIL = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Detail&a=index";
|
||||||
|
@ -306,6 +306,9 @@ public class WebViewActivity extends AbsActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void forward(Context context, String url, boolean isLive) {
|
public static void forward(Context context, String url, boolean isLive) {
|
||||||
|
if(!url.contains("?")){
|
||||||
|
url+="?t="+System.currentTimeMillis()+"&";
|
||||||
|
}
|
||||||
forward(context, url, true, isLive);
|
forward(context, url, true, isLive);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ package com.yunbao.common.bean;
|
|||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class CheckUpgradesModel extends BaseModel {
|
public class CheckUpgradesModel extends BaseModel {
|
||||||
@ -38,6 +39,9 @@ public class CheckUpgradesModel extends BaseModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<RewardsModel> getRewards() {
|
public List<RewardsModel> getRewards() {
|
||||||
|
if(rewards == null) {
|
||||||
|
rewards = new ArrayList<>();
|
||||||
|
}
|
||||||
return rewards;
|
return rewards;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -295,6 +295,9 @@ public class CommonRefreshView extends FrameLayout implements View.OnClickListen
|
|||||||
public void setLayoutManager(RecyclerView.LayoutManager layoutManager) {
|
public void setLayoutManager(RecyclerView.LayoutManager layoutManager) {
|
||||||
mRecyclerView.setLayoutManager(layoutManager);
|
mRecyclerView.setLayoutManager(layoutManager);
|
||||||
}
|
}
|
||||||
|
public <T extends RecyclerView.LayoutManager> T getLayoutManager(){
|
||||||
|
return (T) mRecyclerView.getLayoutManager();
|
||||||
|
}
|
||||||
|
|
||||||
public void setItemDecoration(ItemDecoration itemDecoration) {
|
public void setItemDecoration(ItemDecoration itemDecoration) {
|
||||||
mRecyclerView.addItemDecoration(itemDecoration);
|
mRecyclerView.addItemDecoration(itemDecoration);
|
||||||
|
@ -80,7 +80,7 @@ public class API extends BaseApi {
|
|||||||
.addInterceptor(initQuery(isNeedUid, isNeedToken, CommonAppContext.sInstance.getApplicationContext()))
|
.addInterceptor(initQuery(isNeedUid, isNeedToken, CommonAppContext.sInstance.getApplicationContext()))
|
||||||
.addInterceptor(loggingInterceptor);
|
.addInterceptor(loggingInterceptor);
|
||||||
return create(builder.build(),
|
return create(builder.build(),
|
||||||
GsonConverterFactory.create(gson), RxJava2CallAdapterFactory.create(), CommonAppConfig.HOST, PDLiveApi.class);
|
JavaConverterFactory.create(gson), RxJava2CallAdapterFactory.create(), CommonAppConfig.HOST, PDLiveApi.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
//公共参数
|
//公共参数
|
||||||
|
@ -20,8 +20,8 @@ public class CommonHttpConsts {
|
|||||||
public static final String DOWNLOAD_GIF = "downloadGif";
|
public static final String DOWNLOAD_GIF = "downloadGif";
|
||||||
public static final String GET_BALANCE = "getBalance";
|
public static final String GET_BALANCE = "getBalance";
|
||||||
public static final String CHECK_TOKEN_INVALID = "checkTokenInvalid";
|
public static final String CHECK_TOKEN_INVALID = "checkTokenInvalid";
|
||||||
public static final String NOTIFY_GOOGLE = "Charge.google_pay";
|
public static final String NOTIFY_GOOGLE = "gugezhifuhuidiao";
|
||||||
public static final String COMMUNITY_SETREPORT = "Community.setReport";
|
public static final String COMMUNITY_SETREPORT = "yonghushequdongtaijubao";
|
||||||
|
|
||||||
public static final String GET_USER_HOME = "getUserHome";
|
public static final String GET_USER_HOME = "getUserHome";
|
||||||
public static final String GET_USER_BASEINFO = "getUserBaseinfo";
|
public static final String GET_USER_BASEINFO = "getUserBaseinfo";
|
||||||
|
@ -175,7 +175,7 @@ public class CommonHttpUtil {
|
|||||||
}
|
}
|
||||||
Log.i("来了", lang);
|
Log.i("来了", lang);
|
||||||
//或者仅仅使用 locale = Locale.getDefault(); 不需要考虑接口 deprecated(弃用)问题
|
//或者仅仅使用 locale = Locale.getDefault(); 不需要考虑接口 deprecated(弃用)问题
|
||||||
HttpClient.getInstance().get("Home.getConfig", CommonHttpConsts.GET_CONFIG).params("langue", lang).params("version", "" + VersionUtil.getVersion()).params("from", "android").params("appType", "1").execute(new HttpCallback() {
|
HttpClient.getInstance().get("huoquzhuyepeizhixinxi", CommonHttpConsts.GET_CONFIG).params("langue", lang).params("version", "" + VersionUtil.getVersion()).params("from", "android").params("appType", "1").execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0 && info.length > 0) {
|
if (code == 0 && info.length > 0) {
|
||||||
@ -305,7 +305,7 @@ public class CommonHttpUtil {
|
|||||||
ToastUtil.show(WordUtil.getString(R.string.cannot_follow_self));
|
ToastUtil.show(WordUtil.getString(R.string.cannot_follow_self));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
HttpClient.getInstance().get("User.setAttents", tag).params("touid", touid).execute(new HttpCallback() {
|
HttpClient.getInstance().get("caozuoguanzhuzhuangtaiv2", tag).params("touid", touid).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0 && info.length > 0 || code == 1001) {
|
if (code == 0 && info.length > 0 || code == 1001) {
|
||||||
@ -340,7 +340,7 @@ public class CommonHttpUtil {
|
|||||||
} else {
|
} else {
|
||||||
isGoogle = "-1";
|
isGoogle = "-1";
|
||||||
}
|
}
|
||||||
HttpClient.getInstance().get("User.getBalance", CommonHttpConsts.GET_BALANCE).params("type", 0).params("isGooglePay", isGoogle).execute(callback);
|
HttpClient.getInstance().get("huoquwodezuanshi", CommonHttpConsts.GET_BALANCE).params("type", 0).params("isGooglePay", isGoogle).execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -389,7 +389,7 @@ public class CommonHttpUtil {
|
|||||||
* 检查token是否失效
|
* 检查token是否失效
|
||||||
*/
|
*/
|
||||||
public static void checkTokenInvalid() {
|
public static void checkTokenInvalid() {
|
||||||
HttpClient.getInstance().get("User.ifToken", CommonHttpConsts.CHECK_TOKEN_INVALID).execute(NO_CALLBACK);
|
HttpClient.getInstance().get("shezhijiaoyouzhaopianzhuangtai", CommonHttpConsts.CHECK_TOKEN_INVALID).execute(NO_CALLBACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -405,11 +405,11 @@ public class CommonHttpUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void Google_sec_pay(String purchaseToken, String orderNo, String tradeNo, HttpCallback callback) {
|
public static void Google_sec_pay(String purchaseToken, String orderNo, String tradeNo, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Charge.Google_sec_pay", "Charge.Google_sec_pay").params("purchaseToken", purchaseToken).params("orderno", orderNo).params("trade_no", tradeNo).params("package_name", AppManager.getInstance().getMainActivity().getPackageName()).execute(callback);
|
HttpClient.getInstance().get("gugedingdanyanzheng", "gugedingdanyanzheng").params("purchaseToken", purchaseToken).params("orderno", orderNo).params("trade_no", tradeNo).params("package_name", AppManager.getInstance().getMainActivity().getPackageName()).execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void notifySamsung(String purchaseId, String selfOrderId,HttpCallback callback) {
|
public static void notifySamsung(String purchaseId, String selfOrderId,HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Charge.SamsungNotify", "Charge.SamsungNotify")
|
HttpClient.getInstance().get("sanxingzhifuhuidiao", "sanxingzhifuhuidiao")
|
||||||
.params("purchaseID", purchaseId)
|
.params("purchaseID", purchaseId)
|
||||||
.params("SelfOrderId", selfOrderId)
|
.params("SelfOrderId", selfOrderId)
|
||||||
.params("PackageName", "pd")
|
.params("PackageName", "pd")
|
||||||
@ -450,13 +450,13 @@ public class CommonHttpUtil {
|
|||||||
* 用户个人主页信息
|
* 用户个人主页信息
|
||||||
*/
|
*/
|
||||||
public static void getUserBaseinfo(String touid, HttpCallback callback) {
|
public static void getUserBaseinfo(String touid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.getUserBaseinfo", CommonHttpConsts.GET_USER_BASEINFO).params("touid", touid).execute(callback);
|
HttpClient.getInstance().get("huoquyonghujichuxinxi", CommonHttpConsts.GET_USER_BASEINFO).params("touid", touid).execute(callback);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 上传文件 获取七牛云token的接口
|
* 上传文件 获取七牛云token的接口
|
||||||
*/
|
*/
|
||||||
public static void getUploadQiNiuToken(HttpCallback callback, boolean isImg) {
|
public static void getUploadQiNiuToken(HttpCallback callback, boolean isImg) {
|
||||||
HttpClient.getInstance().get("Pdluserhome.getQiNiuToken2", "Pdluserhome.getQiNiuToken2")
|
HttpClient.getInstance().get("huoquqiniushangchuanlingpaiv2", "huoquqiniushangchuanlingpaiv2")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("token", CommonAppConfig.getInstance().getToken())
|
.params("token", CommonAppConfig.getInstance().getToken())
|
||||||
.params("ext", isImg ? ".jpeg" : ".mp4")
|
.params("ext", isImg ? ".jpeg" : ".mp4")
|
||||||
@ -469,7 +469,7 @@ public class CommonHttpUtil {
|
|||||||
if(StringUtil.isEmpty(uid)){
|
if(StringUtil.isEmpty(uid)){
|
||||||
uid="NotLogin_"+ DeviceUtils.getUniqueDeviceId();
|
uid="NotLogin_"+ DeviceUtils.getUniqueDeviceId();
|
||||||
}
|
}
|
||||||
HttpClient.getInstance().get("Pdluserhome.getQiNiuToken3", "Pdluserhome.getQiNiuToken3")
|
HttpClient.getInstance().get("huoquqiniushangchuanlingpaiv3", "huoquqiniushangchuanlingpaiv3")
|
||||||
.params("uid",uid)
|
.params("uid",uid)
|
||||||
.params("token", CommonAppConfig.getInstance().getToken())
|
.params("token", CommonAppConfig.getInstance().getToken())
|
||||||
.params("file_name", fileName)
|
.params("file_name", fileName)
|
||||||
|
@ -34,7 +34,7 @@ public class HttpClient {
|
|||||||
private String mUrl;
|
private String mUrl;
|
||||||
|
|
||||||
private HttpClient() {
|
private HttpClient() {
|
||||||
mUrl = CommonAppConfig.HOST + "/api/public/?service=";
|
mUrl = CommonAppConfig.HOST + "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static HttpClient getInstance() {
|
public static HttpClient getInstance() {
|
||||||
@ -69,6 +69,7 @@ public class HttpClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public GetRequest<JsonBean> get(String serviceName, String tag) {
|
public GetRequest<JsonBean> get(String serviceName, String tag) {
|
||||||
|
serviceName=serviceName+"hs";
|
||||||
Context context = CommonAppContext.sInstance.getApplicationContext();
|
Context context = CommonAppContext.sInstance.getApplicationContext();
|
||||||
//拼装基本信息
|
//拼装基本信息
|
||||||
Map<String, String> map = new HashMap<>();
|
Map<String, String> map = new HashMap<>();
|
||||||
@ -112,6 +113,7 @@ public class HttpClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public PostRequest<JsonBean> post(String serviceName, String tag) {
|
public PostRequest<JsonBean> post(String serviceName, String tag) {
|
||||||
|
serviceName=serviceName+"hs";
|
||||||
Context context = CommonAppContext.sInstance.getApplicationContext();
|
Context context = CommonAppContext.sInstance.getApplicationContext();
|
||||||
//拼装基本信息
|
//拼装基本信息
|
||||||
Map<String, String> map = new HashMap<>();
|
Map<String, String> map = new HashMap<>();
|
||||||
|
@ -135,7 +135,7 @@ public class HttpLoggingInterceptor implements Interceptor {
|
|||||||
boolean logHeaders = (printLevel == Level.BODY || printLevel == Level.HEADERS);
|
boolean logHeaders = (printLevel == Level.BODY || printLevel == Level.HEADERS);
|
||||||
StringBuilder sb=new StringBuilder();
|
StringBuilder sb=new StringBuilder();
|
||||||
try {
|
try {
|
||||||
sb.append("<-- ").append(clone.code())
|
sb.append("<-- ").append("HTTP结果").append(clone.code())
|
||||||
.append(' ').append(clone.message())
|
.append(' ').append(clone.message())
|
||||||
.append(' ').append(clone.request().url())
|
.append(' ').append(clone.request().url())
|
||||||
.append(" (").append(tookMs).append("ms)\n");
|
.append(" (").append(tookMs).append("ms)\n");
|
||||||
|
@ -0,0 +1,97 @@
|
|||||||
|
package com.yunbao.common.http;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.google.gson.Gson;
|
||||||
|
import com.google.gson.TypeAdapter;
|
||||||
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
import com.yunbao.common.utils.AesUtils;
|
||||||
|
import com.yunbao.common.utils.L;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.lang.annotation.Annotation;
|
||||||
|
import java.lang.reflect.Type;
|
||||||
|
import java.util.Base64;
|
||||||
|
|
||||||
|
import okhttp3.RequestBody;
|
||||||
|
import okhttp3.ResponseBody;
|
||||||
|
import retrofit2.Converter;
|
||||||
|
import retrofit2.Retrofit;
|
||||||
|
|
||||||
|
public final class JavaConverterFactory extends Converter.Factory {
|
||||||
|
/**
|
||||||
|
* Create an instance using a default {@link Gson} instance for conversion. Encoding to JSON and
|
||||||
|
* decoding from JSON (when no charset is specified by a header) will use UTF-8.
|
||||||
|
*/
|
||||||
|
public static JavaConverterFactory create() {
|
||||||
|
return create(new Gson());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an instance using {@code gson} for conversion. Encoding to JSON and
|
||||||
|
* decoding from JSON (when no charset is specified by a header) will use UTF-8.
|
||||||
|
*/
|
||||||
|
public static JavaConverterFactory create(Gson gson) {
|
||||||
|
return new JavaConverterFactory(gson);
|
||||||
|
}
|
||||||
|
|
||||||
|
private final Gson gson;
|
||||||
|
|
||||||
|
private JavaConverterFactory(Gson gson) {
|
||||||
|
if (gson == null) throw new NullPointerException("gson == null");
|
||||||
|
this.gson = gson;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Converter<ResponseBody, ?> responseBodyConverter(Type type, Annotation[] annotations,
|
||||||
|
Retrofit retrofit) {
|
||||||
|
TypeAdapter<?> adapter = gson.getAdapter(TypeToken.get(type));
|
||||||
|
return new JsonResponseBodyConverter<>(gson, adapter);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Converter<?, RequestBody> requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, Retrofit retrofit) {
|
||||||
|
return super.requestBodyConverter(type, parameterAnnotations, methodAnnotations, retrofit);
|
||||||
|
}
|
||||||
|
|
||||||
|
final class JsonResponseBodyConverter <T> implements Converter<ResponseBody, T> {
|
||||||
|
private final Gson gson;
|
||||||
|
private final TypeAdapter<T> adapter;
|
||||||
|
JsonResponseBodyConverter(Gson gson, TypeAdapter<T> adapter) {
|
||||||
|
this.gson = gson;
|
||||||
|
this.adapter = adapter;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public T convert(ResponseBody value) throws IOException {
|
||||||
|
String response = value.string();
|
||||||
|
String allResponseData;
|
||||||
|
L.e("解密前::"+response);
|
||||||
|
JSONObject jsonObject = JSONObject.parseObject(response);
|
||||||
|
if(jsonObject!=null){
|
||||||
|
allResponseData = jsonObject.getString("data");
|
||||||
|
if(allResponseData!=null){
|
||||||
|
byte[] decodedData = null;
|
||||||
|
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
|
||||||
|
decodedData = Base64.getDecoder().decode(allResponseData);
|
||||||
|
}
|
||||||
|
response = AesUtils.decryptToString(decodedData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
jsonObject.put("data",JSONObject.parseObject(response));
|
||||||
|
|
||||||
|
response = JSON.toJSONString(jsonObject);
|
||||||
|
L.e("解密后::"+ response);
|
||||||
|
//获取加密数据,解密,之后再让adapter去处理json串,解析具体的数据就可以了
|
||||||
|
try{
|
||||||
|
return adapter.fromJson(response);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
} finally {
|
||||||
|
value.close();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,18 @@
|
|||||||
package com.yunbao.common.http;
|
package com.yunbao.common.http;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONException;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.blankj.utilcode.util.GsonUtils;
|
||||||
|
import com.google.gson.Gson;
|
||||||
|
import com.yunbao.common.bean.AdBean;
|
||||||
|
import com.yunbao.common.utils.AesUtils;
|
||||||
|
import com.yunbao.common.utils.L;
|
||||||
|
|
||||||
|
import java.util.Base64;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2017/8/5.
|
* Created by cxf on 2017/8/5.
|
||||||
*/
|
*/
|
||||||
@ -7,7 +20,7 @@ package com.yunbao.common.http;
|
|||||||
public class JsonBean {
|
public class JsonBean {
|
||||||
private int ret;
|
private int ret;
|
||||||
private String msg;
|
private String msg;
|
||||||
private Data data;
|
private String data;
|
||||||
|
|
||||||
public int getRet() {
|
public int getRet() {
|
||||||
return ret;
|
return ret;
|
||||||
@ -26,10 +39,41 @@ public class JsonBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Data getData() {
|
public Data getData() {
|
||||||
return data;
|
if(data.indexOf(":")>0){
|
||||||
|
return GsonUtils.fromJson(data,Data.class);
|
||||||
|
}else{
|
||||||
|
Data resultData = new Data();
|
||||||
|
byte[] decodedData = null;
|
||||||
|
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
|
||||||
|
decodedData = Base64.getDecoder().decode(data);
|
||||||
|
}
|
||||||
|
String decryptedText = AesUtils.decryptToString(decodedData);
|
||||||
|
JSONObject object = JSON.parseObject(decryptedText);
|
||||||
|
try {
|
||||||
|
JSONArray jsonArray = object.getJSONArray("info");
|
||||||
|
String [] array = new String[jsonArray.size()];
|
||||||
|
for (int i = 0; i <array.length; i++) {
|
||||||
|
array[i] = jsonArray.getString(i);
|
||||||
|
}
|
||||||
|
resultData.setInfo(array);
|
||||||
|
resultData.setCode(object.getInteger("code"));
|
||||||
|
resultData.setMsg(object.getString("msg"));
|
||||||
|
}catch (Exception e) {
|
||||||
|
try {
|
||||||
|
String [] array = new String[1];
|
||||||
|
array[0]= object.getString("info");
|
||||||
|
resultData.setInfo(array);
|
||||||
|
resultData.setCode(object.getInteger("code"));
|
||||||
|
resultData.setMsg(object.getString("msg"));
|
||||||
|
} catch (JSONException ex) {
|
||||||
|
L.e("字符串格式错误");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return resultData;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setData(Data data) {
|
public void setData(String data) {
|
||||||
this.data = data;
|
this.data = data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取当前直播间的用户列表
|
* 获取当前直播间的用户列表
|
||||||
*/
|
*/
|
||||||
public static void getUserList(String liveuid, String stream, String type, int p, HttpCallback callback) {
|
public static void getUserList(String liveuid, String stream, String type, int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getUserLists", LiveHttpConsts.GET_USER_LIST)
|
HttpClient.getInstance().get("zhibojianyonghuliebiao", LiveHttpConsts.GET_USER_LIST)
|
||||||
.params("liveuid", liveuid)
|
.params("liveuid", liveuid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("type", type)
|
.params("type", type)
|
||||||
@ -51,7 +51,7 @@ public class LiveHttpUtil {
|
|||||||
* @param callback 回调
|
* @param callback 回调
|
||||||
*/
|
*/
|
||||||
public static void getUserRankList(String liveUid, HttpCallback callback) {
|
public static void getUserRankList(String liveUid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Contribute.index", LiveHttpConsts.GET_USER_LIST)
|
HttpClient.getInstance().get("xiaofeitongji", LiveHttpConsts.GET_USER_LIST)
|
||||||
.params("uid", liveUid)
|
.params("uid", liveUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取当前直播间的连麦用户列表
|
* 获取当前直播间的连麦用户列表
|
||||||
*/
|
*/
|
||||||
public static void getMicList(String liveuid, int p, HttpCallback callback) {
|
public static void getMicList(String liveuid, int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getDrLm", "Live.getDrLm")
|
HttpClient.getInstance().get("huoqulianmaizhuangtai", "huoqulianmaizhuangtai")
|
||||||
.params("uid", liveuid, true)
|
.params("uid", liveuid, true)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -69,7 +69,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取活动列表
|
* 获取活动列表
|
||||||
*/
|
*/
|
||||||
public static void getHDList(HttpCallback callback) {
|
public static void getHDList(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Active.getActiveList", "Active.getActiveList")
|
HttpClient.getInstance().get("huoquhuodongliebiao", "huoquhuodongliebiao")
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public class LiveHttpUtil {
|
|||||||
* @param stream 主播的stream
|
* @param stream 主播的stream
|
||||||
*/
|
*/
|
||||||
public static void roomCharge(String liveUid, String stream, HttpCallback callback) {
|
public static void roomCharge(String liveUid, String stream, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.roomCharge", LiveHttpConsts.ROOM_CHARGE)
|
HttpClient.getInstance().get("fangjiankoufei", LiveHttpConsts.ROOM_CHARGE)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -94,7 +94,7 @@ public class LiveHttpUtil {
|
|||||||
* @param stream 主播的stream
|
* @param stream 主播的stream
|
||||||
*/
|
*/
|
||||||
public static void timeCharge(String liveUid, String stream, HttpCallback callback) {
|
public static void timeCharge(String liveUid, String stream, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.timeCharge", LiveHttpConsts.TIME_CHARGE)
|
HttpClient.getInstance().get("fangjianjishikoufei", LiveHttpConsts.TIME_CHARGE)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -105,7 +105,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取用户余额
|
* 获取用户余额
|
||||||
*/
|
*/
|
||||||
public static void getCoin(HttpCallback callback) {
|
public static void getCoin(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getCoin", LiveHttpConsts.GET_COIN)
|
HttpClient.getInstance().get("zhibojianhuoquyonghuyue", LiveHttpConsts.GET_COIN)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ public class LiveHttpUtil {
|
|||||||
* @param touid 对方的uid
|
* @param touid 对方的uid
|
||||||
*/
|
*/
|
||||||
public static void getLiveRecord(String touid, int p, HttpCallback callback) {
|
public static void getLiveRecord(String touid, int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.getLiverecord", LiveHttpConsts.GET_LIVE_RECORD)
|
HttpClient.getInstance().get("huoquzhibojilu", LiveHttpConsts.GET_LIVE_RECORD)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -127,7 +127,7 @@ public class LiveHttpUtil {
|
|||||||
* @param recordId 视频的id
|
* @param recordId 视频的id
|
||||||
*/
|
*/
|
||||||
public static void getAliCdnRecord(String recordId, HttpCallback callback) {
|
public static void getAliCdnRecord(String recordId, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.getAliCdnRecord", LiveHttpConsts.GET_ALI_CDN_RECORD)
|
HttpClient.getInstance().get("huoqulubojilu", LiveHttpConsts.GET_ALI_CDN_RECORD)
|
||||||
.params("id", recordId)
|
.params("id", recordId)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -137,7 +137,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取主播印象列表
|
* 获取主播印象列表
|
||||||
*/
|
*/
|
||||||
public static void getAllImpress(String touid, HttpCallback callback) {
|
public static void getAllImpress(String touid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.getUserLabel", LiveHttpConsts.GET_ALL_IMPRESS)
|
HttpClient.getInstance().get("huoquyonghuyingxiangbiaoqian", LiveHttpConsts.GET_ALL_IMPRESS)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -146,7 +146,7 @@ public class LiveHttpUtil {
|
|||||||
* 给主播设置印象
|
* 给主播设置印象
|
||||||
*/
|
*/
|
||||||
public static void setImpress(String touid, String ImpressIDs, HttpCallback callback) {
|
public static void setImpress(String touid, String ImpressIDs, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.setUserLabel", LiveHttpConsts.SET_IMPRESS)
|
HttpClient.getInstance().get("shezhiyonghuyingxiangbiaoqian", LiveHttpConsts.SET_IMPRESS)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.params("labels", ImpressIDs)
|
.params("labels", ImpressIDs)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -157,7 +157,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取当前直播间的管理员列表
|
* 获取当前直播间的管理员列表
|
||||||
*/
|
*/
|
||||||
public static void getAdminList(String liveUid, HttpCallback callback) {
|
public static void getAdminList(String liveUid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getAdminList", LiveHttpConsts.GET_ADMIN_LIST)
|
HttpClient.getInstance().get("huoquguanliyuanliebiao", LiveHttpConsts.GET_ADMIN_LIST)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -166,7 +166,7 @@ public class LiveHttpUtil {
|
|||||||
* 主播设置或取消直播间的管理员
|
* 主播设置或取消直播间的管理员
|
||||||
*/
|
*/
|
||||||
public static void setAdmin(String liveUid, String touid, HttpCallback callback) {
|
public static void setAdmin(String liveUid, String touid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.setAdmin", LiveHttpConsts.SET_ADMIN)
|
HttpClient.getInstance().get("shezhiguanliyuanzhuangtai", LiveHttpConsts.SET_ADMIN)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -176,7 +176,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取直播间的禁言列表
|
* 获取直播间的禁言列表
|
||||||
*/
|
*/
|
||||||
public static void getLiveShutUpList(String liveUid, int p, HttpCallback callback) {
|
public static void getLiveShutUpList(String liveUid, int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Livemanage.getShutList", LiveHttpConsts.GET_LIVE_SHUT_UP_LIST)
|
HttpClient.getInstance().get("jinyanyonghu", LiveHttpConsts.GET_LIVE_SHUT_UP_LIST)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -186,7 +186,7 @@ public class LiveHttpUtil {
|
|||||||
* 直播间解除禁言
|
* 直播间解除禁言
|
||||||
*/
|
*/
|
||||||
public static void liveCancelShutUp(String liveUid, String toUid, HttpCallback callback) {
|
public static void liveCancelShutUp(String liveUid, String toUid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Livemanage.cancelShut", LiveHttpConsts.LIVE_CANCEL_SHUT_UP)
|
HttpClient.getInstance().get("jiechujinyan", LiveHttpConsts.LIVE_CANCEL_SHUT_UP)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("touid", toUid)
|
.params("touid", toUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -196,7 +196,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取直播间的拉黑列表
|
* 获取直播间的拉黑列表
|
||||||
*/
|
*/
|
||||||
public static void getLiveBlackList(String liveUid, int p, HttpCallback callback) {
|
public static void getLiveBlackList(String liveUid, int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Livemanage.getKickList", LiveHttpConsts.GET_LIVE_BLACK_LIST)
|
HttpClient.getInstance().get("tichuyonghu", LiveHttpConsts.GET_LIVE_BLACK_LIST)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -206,7 +206,7 @@ public class LiveHttpUtil {
|
|||||||
* 直播间解除拉黑
|
* 直播间解除拉黑
|
||||||
*/
|
*/
|
||||||
public static void liveCancelBlack(String liveUid, String toUid, HttpCallback callback) {
|
public static void liveCancelBlack(String liveUid, String toUid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Livemanage.cancelKick", LiveHttpConsts.LIVE_CANCEL_BLACK)
|
HttpClient.getInstance().get("jiechutichu", LiveHttpConsts.LIVE_CANCEL_BLACK)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("touid", toUid)
|
.params("touid", toUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -217,7 +217,7 @@ public class LiveHttpUtil {
|
|||||||
* 直播结束后,获取直播收益,观看人数,时长等信息
|
* 直播结束后,获取直播收益,观看人数,时长等信息
|
||||||
*/
|
*/
|
||||||
public static void getLiveEndInfo(String stream, HttpCallback callback) {
|
public static void getLiveEndInfo(String stream, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.stopInfo", LiveHttpConsts.GET_LIVE_END_INFO)
|
HttpClient.getInstance().get("zhibojieshuxinxi", LiveHttpConsts.GET_LIVE_END_INFO)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -226,7 +226,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取直播间举报内容列表
|
* 获取直播间举报内容列表
|
||||||
*/
|
*/
|
||||||
public static void getLiveReportList(HttpCallback callback) {
|
public static void getLiveReportList(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getReportClass", LiveHttpConsts.GET_LIVE_REPORT_LIST)
|
HttpClient.getInstance().get("huoqujubaopeizhixinxi", LiveHttpConsts.GET_LIVE_REPORT_LIST)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ public class LiveHttpUtil {
|
|||||||
* 举报用户
|
* 举报用户
|
||||||
*/
|
*/
|
||||||
public static void setReport(String touid, String content, HttpCallback callback) {
|
public static void setReport(String touid, String content, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.setReport", LiveHttpConsts.SET_REPORT)
|
HttpClient.getInstance().get("yonghujubao", LiveHttpConsts.SET_REPORT)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.params("content", content)
|
.params("content", content)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -244,7 +244,7 @@ public class LiveHttpUtil {
|
|||||||
* 举报用户 + 图片
|
* 举报用户 + 图片
|
||||||
*/
|
*/
|
||||||
public static void setReport(String touid,String report_argument, String content, File file1, File file2, File file3, String videoId, HttpCallback callback) {
|
public static void setReport(String touid,String report_argument, String content, File file1, File file2, File file3, String videoId, HttpCallback callback) {
|
||||||
PostRequest<JsonBean> request = HttpClient.getInstance().post("Live.setReport", LiveHttpConsts.SET_REPORT)
|
PostRequest<JsonBean> request = HttpClient.getInstance().post("yonghujubao", LiveHttpConsts.SET_REPORT)
|
||||||
.isMultipart(true)
|
.isMultipart(true)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.params("report_argument", report_argument)
|
.params("report_argument", report_argument)
|
||||||
@ -268,7 +268,7 @@ public class LiveHttpUtil {
|
|||||||
* 直播间点击聊天列表和头像出现的弹窗
|
* 直播间点击聊天列表和头像出现的弹窗
|
||||||
*/
|
*/
|
||||||
public static void getLiveUser(String touid, String liveUid, HttpCallback callback) {
|
public static void getLiveUser(String touid, String liveUid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getPop", LiveHttpConsts.GET_LIVE_USER)
|
HttpClient.getInstance().get("zhibojiantanchuangxinxi", LiveHttpConsts.GET_LIVE_USER)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -278,7 +278,7 @@ public class LiveHttpUtil {
|
|||||||
* 主播或管理员踢人
|
* 主播或管理员踢人
|
||||||
*/
|
*/
|
||||||
public static void kicking(String liveUid, String touid, HttpCallback callback) {
|
public static void kicking(String liveUid, String touid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.kicking", LiveHttpConsts.KICKING)
|
HttpClient.getInstance().get("zhibojiantiren", LiveHttpConsts.KICKING)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -294,7 +294,7 @@ public class LiveHttpUtil {
|
|||||||
* @param time 禁言时间 (分)
|
* @param time 禁言时间 (分)
|
||||||
*/
|
*/
|
||||||
public static void setShutUp(String liveUid, String stream, int type, String touid, String time, HttpCallback callback) {
|
public static void setShutUp(String liveUid, String stream, int type, String touid, String time, HttpCallback callback) {
|
||||||
GetRequest<JsonBean> request = HttpClient.getInstance().get("Live.setShutUp", LiveHttpConsts.SET_SHUT_UP)
|
GetRequest<JsonBean> request = HttpClient.getInstance().get("zhibojianjinyan", LiveHttpConsts.SET_SHUT_UP)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("type", type)
|
.params("type", type)
|
||||||
@ -312,7 +312,7 @@ public class LiveHttpUtil {
|
|||||||
* @param type 0表示关闭当前直播 1表示禁播,2表示封禁账号
|
* @param type 0表示关闭当前直播 1表示禁播,2表示封禁账号
|
||||||
*/
|
*/
|
||||||
public static void superCloseRoom(String liveUid, int type, HttpCallback callback) {
|
public static void superCloseRoom(String liveUid, int type, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.superStopRoom", LiveHttpConsts.SUPER_CLOSE_ROOM)
|
HttpClient.getInstance().get("chaoguanguanbo", LiveHttpConsts.SUPER_CLOSE_ROOM)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("type", type)
|
.params("type", type)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -323,7 +323,7 @@ public class LiveHttpUtil {
|
|||||||
* 守护商品类型列表
|
* 守护商品类型列表
|
||||||
*/
|
*/
|
||||||
public static void getGuardBuyList(HttpCallback callback) {
|
public static void getGuardBuyList(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Guard.getList", LiveHttpConsts.GET_GUARD_BUY_LIST)
|
HttpClient.getInstance().get("shouhuliebiaov2", LiveHttpConsts.GET_GUARD_BUY_LIST)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -331,7 +331,7 @@ public class LiveHttpUtil {
|
|||||||
* 购买守护接口
|
* 购买守护接口
|
||||||
*/
|
*/
|
||||||
public static void buyGuard(String liveUid, String stream, int guardId, int cid, HttpCallback callback) {
|
public static void buyGuard(String liveUid, String stream, int guardId, int cid, HttpCallback callback) {
|
||||||
GetRequest<JsonBean> request = HttpClient.getInstance().get("Guard.buyGuard", LiveHttpConsts.BUY_GUARD)
|
GetRequest<JsonBean> request = HttpClient.getInstance().get("goumaishouhu", LiveHttpConsts.BUY_GUARD)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("guardid", guardId);
|
.params("guardid", guardId);
|
||||||
@ -347,13 +347,13 @@ public class LiveHttpUtil {
|
|||||||
* 查看主播的守护列表
|
* 查看主播的守护列表
|
||||||
*/
|
*/
|
||||||
public static void getGuardList(String liveUid, int p, HttpCallback callback) {
|
public static void getGuardList(String liveUid, int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Guard.getGuardList", LiveHttpConsts.GET_GUARD_LIST)
|
HttpClient.getInstance().get("shouhuliebiao", LiveHttpConsts.GET_GUARD_LIST)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
public static void getContactMsg(int page, HttpCallback callback) {
|
public static void getContactMsg(int page, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getContactMsg", "getContactMsg")
|
HttpClient.getInstance().get("huoqulianxifangshixiaoxi", "huoqulianxifangshixiaoxi")
|
||||||
.params("p", page)
|
.params("p", page)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -362,7 +362,7 @@ public class LiveHttpUtil {
|
|||||||
* 观众跟主播连麦时,获取自己的流地址
|
* 观众跟主播连麦时,获取自己的流地址
|
||||||
*/
|
*/
|
||||||
public static void getLinkMicStream(HttpCallback callback) {
|
public static void getLinkMicStream(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Linkmic.requestLVBAddrForLinkMic", LiveHttpConsts.GET_LINK_MIC_STREAM)
|
HttpClient.getInstance().get("lianmaituilaliudizhi", LiveHttpConsts.GET_LINK_MIC_STREAM)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -373,7 +373,7 @@ public class LiveHttpUtil {
|
|||||||
* @param pull_url 连麦用户播流地址
|
* @param pull_url 连麦用户播流地址
|
||||||
*/
|
*/
|
||||||
public static void linkMicShowVideo(String touid, String pull_url) {
|
public static void linkMicShowVideo(String touid, String pull_url) {
|
||||||
HttpClient.getInstance().get("Live.showVideo", LiveHttpConsts.LINK_MIC_SHOW_VIDEO)
|
HttpClient.getInstance().get("lianmaixinxi", LiveHttpConsts.LINK_MIC_SHOW_VIDEO)
|
||||||
.params("liveuid", CommonAppConfig.getInstance().getUid())
|
.params("liveuid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.params("pull_url", pull_url)
|
.params("pull_url", pull_url)
|
||||||
@ -389,7 +389,7 @@ public class LiveHttpUtil {
|
|||||||
* 主播设置是否允许观众发起连麦
|
* 主播设置是否允许观众发起连麦
|
||||||
*/
|
*/
|
||||||
public static void setLinkMicEnable(boolean linkMicEnable, HttpCallback callback) {
|
public static void setLinkMicEnable(boolean linkMicEnable, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Linkmic.setMic", LiveHttpConsts.SET_LINK_MIC_ENABLE)
|
HttpClient.getInstance().get("shezhilianmaikaiguan", LiveHttpConsts.SET_LINK_MIC_ENABLE)
|
||||||
.params("ismic", linkMicEnable ? 1 : 0)
|
.params("ismic", linkMicEnable ? 1 : 0)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -399,7 +399,7 @@ public class LiveHttpUtil {
|
|||||||
* 观众检查主播是否允许连麦
|
* 观众检查主播是否允许连麦
|
||||||
*/
|
*/
|
||||||
public static void checkLinkMicEnable(String liveUid, HttpCallback callback) {
|
public static void checkLinkMicEnable(String liveUid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Linkmic.isMic", LiveHttpConsts.CHECK_LINK_MIC_ENABLE)
|
HttpClient.getInstance().get("panduanzhubaoshifoukaiqilianmai", LiveHttpConsts.CHECK_LINK_MIC_ENABLE)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -408,7 +408,7 @@ public class LiveHttpUtil {
|
|||||||
* 连麦pk检查对方主播在线状态
|
* 连麦pk检查对方主播在线状态
|
||||||
*/
|
*/
|
||||||
public static void livePkCheckLive(String liveUid, String stream, String uidStream, HttpCallback callback) {
|
public static void livePkCheckLive(String liveUid, String stream, String uidStream, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Home.getisPk", "Home.getisPk")
|
HttpClient.getInstance().get("huoqupkzhuangtai", "huoqupkzhuangtai")
|
||||||
.params("uid", liveUid, true)
|
.params("uid", liveUid, true)
|
||||||
// .params("token", CommonAppConfig.getInstance().getToken())
|
// .params("token", CommonAppConfig.getInstance().getToken())
|
||||||
// .params("liveuid", liveUid)
|
// .params("liveuid", liveUid)
|
||||||
@ -473,7 +473,7 @@ public class LiveHttpUtil {
|
|||||||
* 发送弹幕
|
* 发送弹幕
|
||||||
*/
|
*/
|
||||||
public static void sendDanmu(String content, String liveUid, String stream, HttpCallback callback) {
|
public static void sendDanmu(String content, String liveUid, String stream, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.sendBarrage", LiveHttpConsts.SEND_DANMU)
|
HttpClient.getInstance().get("fasongdanmu", LiveHttpConsts.SEND_DANMU)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("giftid", "1")
|
.params("giftid", "1")
|
||||||
@ -489,7 +489,7 @@ public class LiveHttpUtil {
|
|||||||
* @param stream 主播的stream
|
* @param stream 主播的stream
|
||||||
*/
|
*/
|
||||||
public static void checkLive(String liveUid, String stream, HttpCallback callback) {
|
public static void checkLive(String liveUid, String stream, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.checkLive", LiveHttpConsts.CHECK_LIVE)
|
HttpClient.getInstance().get("jianchazhibo", LiveHttpConsts.CHECK_LIVE)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -500,33 +500,13 @@ public class LiveHttpUtil {
|
|||||||
* 观众进入直播间
|
* 观众进入直播间
|
||||||
*/
|
*/
|
||||||
public static void enterRoom(String liveUid, String stream, HttpCallback callback) {
|
public static void enterRoom(String liveUid, String stream, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.enterRoom", LiveHttpConsts.ENTER_ROOM)
|
HttpClient.getInstance().get("jinruzhibojian", LiveHttpConsts.ENTER_ROOM)
|
||||||
.params("city", CommonAppConfig.getInstance().getCity())
|
.params("city", CommonAppConfig.getInstance().getCity())
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 观众进入直播间后,还要请求一次
|
|
||||||
*/
|
|
||||||
public static void enterBackRoom(String liveUid, String stream, HttpCallback callback) {
|
|
||||||
HttpClient.getInstance().get("Tx.userjoinroom", "Tx.userjoinroom")
|
|
||||||
.params("GroupId", "g" + liveUid)
|
|
||||||
.params("stream", stream)
|
|
||||||
.execute(callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 观众退出直播间后,还要请求一次
|
|
||||||
*/
|
|
||||||
public static void qBackRoom(String liveUid, String stream, HttpCallback callback) {
|
|
||||||
HttpClient.getInstance().get("Tx.leave_room", "Tx.leave_room")
|
|
||||||
.params("GroupId", "g" + liveUid)
|
|
||||||
.params("stream", stream)
|
|
||||||
.execute(callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取礼物列表,同时会返回剩余的钱
|
* 获取礼物列表,同时会返回剩余的钱
|
||||||
*/
|
*/
|
||||||
@ -539,14 +519,14 @@ public class LiveHttpUtil {
|
|||||||
* 获取礼物列表,同时会返回剩余的钱(新版)
|
* 获取礼物列表,同时会返回剩余的钱(新版)
|
||||||
*/
|
*/
|
||||||
public static void getNewGiftList(HttpCallback callback) {
|
public static void getNewGiftList(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getGiftListApp", LiveHttpConsts.GET_GIFT_LIST)
|
HttpClient.getInstance().get("zhibojianliwuxinxi", LiveHttpConsts.GET_GIFT_LIST)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 获取礼物列表,同时会返回剩余的钱(新版) -用于获取联系方式时的礼物设置
|
* 获取礼物列表,同时会返回剩余的钱(新版) -用于获取联系方式时的礼物设置
|
||||||
*/
|
*/
|
||||||
public static void getHotGiftList(HttpCallback callback) {
|
public static void getHotGiftList(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Gift.getHotGiftList", LiveHttpConsts.GET_GIFT_LIST)
|
HttpClient.getInstance().get("huoqusuoyouremenliwu", LiveHttpConsts.GET_GIFT_LIST)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -554,7 +534,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取包裹列表
|
* 获取包裹列表
|
||||||
*/
|
*/
|
||||||
public static void getWrapList(HttpCallback callback) {
|
public static void getWrapList(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getPackList", LiveHttpConsts.GET_WRAP_LIST)
|
HttpClient.getInstance().get("zhibojianbaoguoxinxi", LiveHttpConsts.GET_WRAP_LIST)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -562,7 +542,7 @@ public class LiveHttpUtil {
|
|||||||
* 主播获取心愿单列表
|
* 主播获取心愿单列表
|
||||||
*/
|
*/
|
||||||
public static void getWishList(HttpCallback callback) {
|
public static void getWishList(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Guide.getWishlist", LiveHttpConsts.GET_WISH_LIST)
|
HttpClient.getInstance().get("huoquxinyuandan", LiveHttpConsts.GET_WISH_LIST)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -570,7 +550,7 @@ public class LiveHttpUtil {
|
|||||||
* 用户获取主播的心愿单列表
|
* 用户获取主播的心愿单列表
|
||||||
*/
|
*/
|
||||||
public static void getWishList(String liveId, HttpCallback callback) {
|
public static void getWishList(String liveId, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Guide.getWishlist", LiveHttpConsts.GET_WISH_LIST)
|
HttpClient.getInstance().get("huoquxinyuandan", LiveHttpConsts.GET_WISH_LIST)
|
||||||
.params("uid", liveId, true)
|
.params("uid", liveId, true)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -581,7 +561,7 @@ public class LiveHttpUtil {
|
|||||||
* @param callback
|
* @param callback
|
||||||
*/
|
*/
|
||||||
public static void getFrontTask(HttpCallback callback) {
|
public static void getFrontTask(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.getFrontTask", "User.getFrontTask")
|
HttpClient.getInstance().get("huoquxinshouyindaozhuangtai", "huoquxinshouyindaozhuangtai")
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -591,7 +571,7 @@ public class LiveHttpUtil {
|
|||||||
* @param callback
|
* @param callback
|
||||||
*/
|
*/
|
||||||
public static void getFrontTask(String Token, String uid, HttpCallback callback) {
|
public static void getFrontTask(String Token, String uid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.getFrontTask", "User.getFrontTask")
|
HttpClient.getInstance().get("huoquxinshouyindaozhuangtai", "huoquxinshouyindaozhuangtai")
|
||||||
.params("token", Token, true)
|
.params("token", Token, true)
|
||||||
.params("uid", uid, true)
|
.params("uid", uid, true)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -601,7 +581,7 @@ public class LiveHttpUtil {
|
|||||||
* 完成新手任務
|
* 完成新手任務
|
||||||
*/
|
*/
|
||||||
public static void setFrontTask(String type, HttpCallback callback) {
|
public static void setFrontTask(String type, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.setFrontTask", "User.setFrontTask")
|
HttpClient.getInstance().get("shezhixinshouyindaozhuangtai", "shezhixinshouyindaozhuangtai")
|
||||||
.params("type", type)
|
.params("type", type)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -610,7 +590,7 @@ public class LiveHttpUtil {
|
|||||||
* 完成新手任務
|
* 完成新手任務
|
||||||
*/
|
*/
|
||||||
public static void setFrontTask(String type, String liveuid, HttpCallback callback) {
|
public static void setFrontTask(String type, String liveuid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.setFrontTask", "User.setFrontTask")
|
HttpClient.getInstance().get("shezhixinshouyindaozhuangtai", "shezhixinshouyindaozhuangtai")
|
||||||
.params("type", type)
|
.params("type", type)
|
||||||
.params("liveuid", liveuid)
|
.params("liveuid", liveuid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -620,7 +600,7 @@ public class LiveHttpUtil {
|
|||||||
* 修改心愿单列表
|
* 修改心愿单列表
|
||||||
*/
|
*/
|
||||||
public static void modifyWishList(String list, HttpCallback callback) {
|
public static void modifyWishList(String list, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Guide.setWishlist", LiveHttpConsts.SET_WISH_LIST)
|
HttpClient.getInstance().get("shezhixinyuandan", LiveHttpConsts.SET_WISH_LIST)
|
||||||
.params("list", list)
|
.params("list", list)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -642,7 +622,7 @@ public class LiveHttpUtil {
|
|||||||
* @param isContactGift 是否为联系方式礼物
|
* @param isContactGift 是否为联系方式礼物
|
||||||
*/
|
*/
|
||||||
public static void sendGift(String by, String liveUid, String stream, int giftId, String giftCount, int isContactGift, boolean isFansGroupGift, HttpCallback callback) {
|
public static void sendGift(String by, String liveUid, String stream, int giftId, String giftCount, int isContactGift, boolean isFansGroupGift, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.sendGift", LiveHttpConsts.SEND_GIFT)
|
HttpClient.getInstance().get("zhibojianzengsongliwu", LiveHttpConsts.SEND_GIFT)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("giftid", giftId)
|
.params("giftid", giftId)
|
||||||
@ -659,7 +639,7 @@ public class LiveHttpUtil {
|
|||||||
* @param isContactGift 是否为联系方式礼物
|
* @param isContactGift 是否为联系方式礼物
|
||||||
*/
|
*/
|
||||||
public static void sendGiftForPage(String by, String liveUid, String stream, int giftId, String giftCount, int isContactGift, boolean isFansGroupGift, HttpCallback callback) {
|
public static void sendGiftForPage(String by, String liveUid, String stream, int giftId, String giftCount, int isContactGift, boolean isFansGroupGift, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.sendPackGift", LiveHttpConsts.SEND_GIFT)
|
HttpClient.getInstance().get("zhibojianzengsongbaoguoliwu", LiveHttpConsts.SEND_GIFT)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("giftid", giftId)
|
.params("giftid", giftId)
|
||||||
@ -676,7 +656,7 @@ public class LiveHttpUtil {
|
|||||||
* @param isContactGift 是否为联系方式礼物
|
* @param isContactGift 是否为联系方式礼物
|
||||||
*/
|
*/
|
||||||
public static void sendGiftForFansGroup(String by, String liveUid, String stream, int giftId, String giftCount, int isContactGift, boolean isFansGroupGift, HttpCallback callback) {
|
public static void sendGiftForFansGroup(String by, String liveUid, String stream, int giftId, String giftCount, int isContactGift, boolean isFansGroupGift, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.fansExclusivePack", LiveHttpConsts.SEND_GIFT)
|
HttpClient.getInstance().get("zengsongfensituanbaoguoliwu", LiveHttpConsts.SEND_GIFT)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("giftid", giftId)
|
.params("giftid", giftId)
|
||||||
@ -688,7 +668,7 @@ public class LiveHttpUtil {
|
|||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
public static void sendBlindBoxTicket(String by, String liveUid, String stream, int giftId, HttpCallback callback) {
|
public static void sendBlindBoxTicket(String by, String liveUid, String stream, int giftId, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.sendBlindBoxTicket", LiveHttpConsts.SEND_GIFT)
|
HttpClient.getInstance().get("mangheshiyongquan", LiveHttpConsts.SEND_GIFT)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("giftid", giftId)
|
.params("giftid", giftId)
|
||||||
@ -717,7 +697,7 @@ public class LiveHttpUtil {
|
|||||||
* 点亮發IM
|
* 点亮發IM
|
||||||
*/
|
*/
|
||||||
public static void sendZAN(String liveUid, HttpCallback callback) {
|
public static void sendZAN(String liveUid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Fans.doubleClickLight", "Fans.DoubleClickLight")
|
HttpClient.getInstance().get("shuangjidianliang", "shuangjidianliang")
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -726,7 +706,7 @@ public class LiveHttpUtil {
|
|||||||
* 连麦pk搜索主播
|
* 连麦pk搜索主播
|
||||||
*/
|
*/
|
||||||
public static void livePkSearchAnchor(String key, int p, HttpCallback callback) {
|
public static void livePkSearchAnchor(String key, int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Livepk.search", LiveHttpConsts.LIVE_PK_SEARCH_ANCHOR)
|
HttpClient.getInstance().get("sousuozhiboyonghu", LiveHttpConsts.LIVE_PK_SEARCH_ANCHOR)
|
||||||
.params("key", key)
|
.params("key", key)
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -737,7 +717,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取主播连麦pk列表
|
* 获取主播连麦pk列表
|
||||||
*/
|
*/
|
||||||
public static void getLivePkList(int p, HttpCallback callback) {
|
public static void getLivePkList(int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Livepk.getLiveList", LiveHttpConsts.GET_LIVE_PK_LIST)
|
HttpClient.getInstance().get("huoquzhiboyonghuliebiao", LiveHttpConsts.GET_LIVE_PK_LIST)
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -774,7 +754,7 @@ public class LiveHttpUtil {
|
|||||||
*/
|
*/
|
||||||
public static void newcreateRoom(String title, int liveClassId, int type, int typeVal, File file, int clarityType,boolean isSw, HttpCallback callback) {
|
public static void newcreateRoom(String title, int liveClassId, int type, int typeVal, File file, int clarityType,boolean isSw, HttpCallback callback) {
|
||||||
|
|
||||||
PostRequest<JsonBean> request = HttpClient.getInstance().post("Live.createRoom2", LiveHttpConsts.CREATE_ROOM)
|
PostRequest<JsonBean> request = HttpClient.getInstance().post("chuangjianzhibov2", LiveHttpConsts.CREATE_ROOM)
|
||||||
.params("title", title)
|
.params("title", title)
|
||||||
.params("liveclassid", liveClassId)
|
.params("liveclassid", liveClassId)
|
||||||
.params("type", type)
|
.params("type", type)
|
||||||
@ -793,7 +773,7 @@ public class LiveHttpUtil {
|
|||||||
* 修改直播状态
|
* 修改直播状态
|
||||||
*/
|
*/
|
||||||
public static void changeLive(String stream) {
|
public static void changeLive(String stream) {
|
||||||
HttpClient.getInstance().get("Live.changeLive", LiveHttpConsts.CHANGE_LIVE)
|
HttpClient.getInstance().get("xiugaizhibozhuangtai", LiveHttpConsts.CHANGE_LIVE)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.params("status", "1")
|
.params("status", "1")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -808,7 +788,7 @@ public class LiveHttpUtil {
|
|||||||
* 主播结束直播
|
* 主播结束直播
|
||||||
*/
|
*/
|
||||||
public static void stopLive(String stream, HttpCallback callback) {
|
public static void stopLive(String stream, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.stopRoom", LiveHttpConsts.STOP_LIVE)
|
HttpClient.getInstance().get("guanbizhibo", LiveHttpConsts.STOP_LIVE)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -817,12 +797,12 @@ public class LiveHttpUtil {
|
|||||||
* 主播开播前获取sdk类型 0金山 1腾讯
|
* 主播开播前获取sdk类型 0金山 1腾讯
|
||||||
*/
|
*/
|
||||||
public static void getLiveSdk(HttpCallback callback) {
|
public static void getLiveSdk(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getSDK", LiveHttpConsts.GET_LIVE_SDK)
|
HttpClient.getInstance().get("huoqusdk", LiveHttpConsts.GET_LIVE_SDK)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void getisRong(HttpCallback callback) {
|
public static void getisRong(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.isRong", "Live.isRong")
|
HttpClient.getInstance().get("shifouweirongyunzhubo", "shifouweirongyunzhubo")
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -831,7 +811,7 @@ public class LiveHttpUtil {
|
|||||||
* @param callback
|
* @param callback
|
||||||
*/
|
*/
|
||||||
public static void getIsSw(HttpCallback callback) {
|
public static void getIsSw(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Tx.setRtcFirm", "Tx.setRtcFirm")
|
HttpClient.getInstance().get("shezhiyuanshengduanshengwangpeizhi", "shezhiyuanshengduanshengwangpeizhi")
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -839,7 +819,7 @@ public class LiveHttpUtil {
|
|||||||
* 腾讯sdk 跟主播连麦时,获取主播的低延时流
|
* 腾讯sdk 跟主播连麦时,获取主播的低延时流
|
||||||
*/
|
*/
|
||||||
public static void getTxLinkMicAccUrl(String originStreamUrl, HttpCallback callback) {
|
public static void getTxLinkMicAccUrl(String originStreamUrl, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Linkmic.requestPlayUrlWithSignForLinkMic", LiveHttpConsts.GET_TX_LINK_MIC_ACC_URL)
|
HttpClient.getInstance().get("jianquanliudizhi", LiveHttpConsts.GET_TX_LINK_MIC_ACC_URL)
|
||||||
.params("originStreamUrl", originStreamUrl)
|
.params("originStreamUrl", originStreamUrl)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -849,7 +829,7 @@ public class LiveHttpUtil {
|
|||||||
* 连麦时候 主播混流
|
* 连麦时候 主播混流
|
||||||
*/
|
*/
|
||||||
public static void linkMicTxMixStream(String mergeparams) {
|
public static void linkMicTxMixStream(String mergeparams) {
|
||||||
HttpClient.getInstance().get("Linkmic.mergeVideoStream", LiveHttpConsts.LINK_MIC_TX_MIX_STREAM)
|
HttpClient.getInstance().get("lianmaihunliu", LiveHttpConsts.LINK_MIC_TX_MIX_STREAM)
|
||||||
.params("mergeparams", mergeparams)
|
.params("mergeparams", mergeparams)
|
||||||
.execute(CommonHttpUtil.NO_CALLBACK);
|
.execute(CommonHttpUtil.NO_CALLBACK);
|
||||||
}
|
}
|
||||||
@ -859,7 +839,7 @@ public class LiveHttpUtil {
|
|||||||
* 我是哪些直播间的管理员,返回这些直播间列表
|
* 我是哪些直播间的管理员,返回这些直播间列表
|
||||||
*/
|
*/
|
||||||
public static void getMyAdminRoomList(int p, HttpCallback callback) {
|
public static void getMyAdminRoomList(int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Livemanage.getRoomList", LiveHttpConsts.GET_MY_ADMIN_ROOM_LIST)
|
HttpClient.getInstance().get("huoquwodefangjian", LiveHttpConsts.GET_MY_ADMIN_ROOM_LIST)
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -869,7 +849,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取直播间奖池等级
|
* 获取直播间奖池等级
|
||||||
*/
|
*/
|
||||||
public static void getLiveGiftPrizePool(String liveUid, String stream, HttpCallback callback) {
|
public static void getLiveGiftPrizePool(String liveUid, String stream, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Jackpot.getJackpot", LiveHttpConsts.GET_LIVE_GIFT_PRIZE_POOL)
|
HttpClient.getInstance().get("huoquyindaoyexinxi", LiveHttpConsts.GET_LIVE_GIFT_PRIZE_POOL)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -879,7 +859,7 @@ public class LiveHttpUtil {
|
|||||||
* 主播checkLive
|
* 主播checkLive
|
||||||
*/
|
*/
|
||||||
public static void anchorCheckLive(String liveUid, String stream, HttpCallback callback) {
|
public static void anchorCheckLive(String liveUid, String stream, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.checkLiveing", LiveHttpConsts.ANCHOR_CHECK_LIVE)
|
HttpClient.getInstance().get("jiancefangjiangzhuangtai", LiveHttpConsts.ANCHOR_CHECK_LIVE)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.params("stream", stream)
|
.params("stream", stream)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -890,7 +870,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取直播间信息
|
* 获取直播间信息
|
||||||
*/
|
*/
|
||||||
public static void getLiveInfo(String liveUid, HttpCallback callback) {
|
public static void getLiveInfo(String liveUid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getLiveInfo", LiveHttpConsts.GET_LIVE_INFO)
|
HttpClient.getInstance().get("huoquzhiboxinxi", LiveHttpConsts.GET_LIVE_INFO)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -901,7 +881,7 @@ public class LiveHttpUtil {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public static void getHcGiftList(HttpCallback callback) {
|
public static void getHcGiftList(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getSvgaList", LiveHttpConsts.GET_GIFT_LIST)
|
HttpClient.getInstance().get("huoquliwudonghualiebiao", LiveHttpConsts.GET_GIFT_LIST)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -911,7 +891,7 @@ public class LiveHttpUtil {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public static void getHczGiftList(HttpCallback callback) {
|
public static void getHczGiftList(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Home.aoto_load", "Home.aoto_load")
|
HttpClient.getInstance().get("yuxiazai", "yuxiazai")
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -920,29 +900,21 @@ public class LiveHttpUtil {
|
|||||||
* 获取活动
|
* 获取活动
|
||||||
*/
|
*/
|
||||||
public static void geteEvent(String anchor_id, HttpCallback callback) {
|
public static void geteEvent(String anchor_id, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Rank.isActivity", LiveHttpConsts.GET_EVENT)
|
HttpClient.getInstance().get("huodongpeizhixinxi", LiveHttpConsts.GET_EVENT)
|
||||||
.params("anchorUid", anchor_id)
|
.params("anchorUid", anchor_id)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
public static void getAnchorActiveImgStatus(String anchor_id, HttpCallback callback) {
|
public static void getAnchorActiveImgStatus(String anchor_id, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.getAnchorActiveImgStatus", LiveHttpConsts.GET_EVENT)
|
HttpClient.getInstance().get("huoquzhuboxunfuchuangzhuangtai", LiveHttpConsts.GET_EVENT)
|
||||||
.params("anchorUid", anchor_id)
|
.params("anchorUid", anchor_id)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* 重置活动
|
|
||||||
*/
|
|
||||||
public static void setEvent(String anchor_id, HttpCallback callback) {
|
|
||||||
HttpClient.getInstance().get("Rank.crystalTimeEnd", LiveHttpConsts.GET_EVENT)
|
|
||||||
.params("anchor_id", anchor_id)
|
|
||||||
.execute(callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 整蛊转盘拯救主播
|
* 整蛊转盘拯救主播
|
||||||
*/
|
*/
|
||||||
public static void userHopePrankTurntable(String anchor_id, String prankid, HttpCallback callback) {
|
public static void userHopePrankTurntable(String anchor_id, String prankid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Prank.userHopePrankTurntable", LiveHttpConsts.USERHOPEPRANKTURNTABLE)
|
HttpClient.getInstance().get("yonghuzhengjiuzhubo", LiveHttpConsts.USERHOPEPRANKTURNTABLE)
|
||||||
.params("prankid", prankid)
|
.params("prankid", prankid)
|
||||||
.params("anchor_id", anchor_id)
|
.params("anchor_id", anchor_id)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -952,7 +924,7 @@ public class LiveHttpUtil {
|
|||||||
* 倒计时结束
|
* 倒计时结束
|
||||||
*/
|
*/
|
||||||
public static void endPrankTurntable(String anchor_id, HttpCallback callback) {
|
public static void endPrankTurntable(String anchor_id, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Prank.endPrankTurntable", LiveHttpConsts.ENDPRANKTURNTABLE)
|
HttpClient.getInstance().get("zhenggudaojishijieshu", LiveHttpConsts.ENDPRANKTURNTABLE)
|
||||||
.params("anchor_id", anchor_id)
|
.params("anchor_id", anchor_id)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -961,7 +933,7 @@ public class LiveHttpUtil {
|
|||||||
* 周星榜数据
|
* 周星榜数据
|
||||||
*/
|
*/
|
||||||
public static void getAnchorLastWeekList(HttpCallback callback) {
|
public static void getAnchorLastWeekList(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("WeekStar.getAnchorLastWeekList", LiveHttpConsts.GETANCHORLASTWEEKLIST)
|
HttpClient.getInstance().get("huoqushangzhouzhouxingbangzhubo", LiveHttpConsts.GETANCHORLASTWEEKLIST)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -969,7 +941,7 @@ public class LiveHttpUtil {
|
|||||||
* 热度加成列表
|
* 热度加成列表
|
||||||
*/
|
*/
|
||||||
public static void useHotCardUserList(String anchor_id, HttpCallback callback) {
|
public static void useHotCardUserList(String anchor_id, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.useHotCardUserList", LiveHttpConsts.USEHOTCARDUSERLIST)
|
HttpClient.getInstance().get("redukayonghuliebiao", LiveHttpConsts.USEHOTCARDUSERLIST)
|
||||||
.params("anchor_id", anchor_id)
|
.params("anchor_id", anchor_id)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -978,7 +950,7 @@ public class LiveHttpUtil {
|
|||||||
* 是否有热度加成
|
* 是否有热度加成
|
||||||
*/
|
*/
|
||||||
public static void isHotCard(String anchor_id, HttpCallback callback) {
|
public static void isHotCard(String anchor_id, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.isHotCard", LiveHttpConsts.ISHOTCARD)
|
HttpClient.getInstance().get("zhibozhongshifoushiyongreduka", LiveHttpConsts.ISHOTCARD)
|
||||||
.params("anchor_id", anchor_id)
|
.params("anchor_id", anchor_id)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -987,7 +959,7 @@ public class LiveHttpUtil {
|
|||||||
* 修改im备注信息
|
* 修改im备注信息
|
||||||
*/
|
*/
|
||||||
public static void setInstructorRemark(String touid, String remark, HttpCallback callback) {
|
public static void setInstructorRemark(String touid, String remark, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.setInstructorRemark", LiveHttpConsts.SETINSTRUCTORREMARK)
|
HttpClient.getInstance().get("shezhiyonghubeizhuming", LiveHttpConsts.SETINSTRUCTORREMARK)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.params("remark", remark)
|
.params("remark", remark)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -997,7 +969,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取用户贵族喇叭的数量
|
* 获取用户贵族喇叭的数量
|
||||||
*/
|
*/
|
||||||
public static void getNobleTrumpetNum(HttpCallback callback) {
|
public static void getNobleTrumpetNum(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Noble.getNobleTrumpetNum", "getNobleTrumpetNum")
|
HttpClient.getInstance().get("huoquguizulabashuliang", "huoquguizulabashuliang")
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1005,7 +977,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取用户贵族喇叭的数量
|
* 获取用户贵族喇叭的数量
|
||||||
*/
|
*/
|
||||||
public static void nobleUseTrumpet(String trumpet_msg, String anchor_id, HttpCallback callback) {
|
public static void nobleUseTrumpet(String trumpet_msg, String anchor_id, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Noble.nobleUseTrumpet", "nobleUseTrumpet")
|
HttpClient.getInstance().get("guizushiyonglaba", "guizushiyonglaba")
|
||||||
.params("", trumpet_msg)
|
.params("", trumpet_msg)
|
||||||
.params("", anchor_id)
|
.params("", anchor_id)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -1015,7 +987,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取用户贵族喇叭的数量
|
* 获取用户贵族喇叭的数量
|
||||||
*/
|
*/
|
||||||
public static void getStarChallengeStatus(String liveUid, HttpCallback callback) {
|
public static void getStarChallengeStatus(String liveUid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("StarChallenge.getStarChallengeStatus", "StarChallengeStatus")
|
HttpClient.getInstance().get("huoquxingjitiaozhanzhuangtai", "huoquxingjitiaozhanzhuangtai")
|
||||||
.params("liveUid", liveUid)
|
.params("liveUid", liveUid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -1024,14 +996,14 @@ public class LiveHttpUtil {
|
|||||||
* 首页关注直播
|
* 首页关注直播
|
||||||
*/
|
*/
|
||||||
public static void getHomeFollow(int p, HttpCallback callback) {
|
public static void getHomeFollow(int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Home.getFollow", "Home.getFollow")
|
HttpClient.getInstance().get("huoquguanzhuzhuboliebiao", "huoquguanzhuzhuboliebiao")
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void getRoomList(String sudGameId, String threshold, String roomHolderType, String liveUid, String currencyType, int page, HttpCallback callback) {
|
public static void getRoomList(String sudGameId, String threshold, String roomHolderType, String liveUid, String currencyType, int page, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Sudgameserver.getRoomList", "Sudgameserver.getRoomList")
|
HttpClient.getInstance().get("huoquyouxiliebiao", "huoquyouxiliebiao")
|
||||||
.params("sud_game_id", sudGameId)
|
.params("sud_game_id", sudGameId)
|
||||||
.params("threshold", threshold)
|
.params("threshold", threshold)
|
||||||
.params("room_holder_type", roomHolderType)
|
.params("room_holder_type", roomHolderType)
|
||||||
@ -1051,7 +1023,7 @@ public class LiveHttpUtil {
|
|||||||
* @param callback
|
* @param callback
|
||||||
*/
|
*/
|
||||||
public static void gameRecord(String sudGameId, String currencyType, String dateType, int page, HttpCallback callback) {
|
public static void gameRecord(String sudGameId, String currencyType, String dateType, int page, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Sudgameserver.gameRecord", "Sudgameserver.gameRecord")
|
HttpClient.getInstance().get("chaxunyouxijilu", "chaxunyouxijilu")
|
||||||
.params("sud_game_id", sudGameId)
|
.params("sud_game_id", sudGameId)
|
||||||
.params("currency_type", currencyType)
|
.params("currency_type", currencyType)
|
||||||
.params("date_type", dateType)
|
.params("date_type", dateType)
|
||||||
@ -1063,7 +1035,7 @@ public class LiveHttpUtil {
|
|||||||
* 获取短剧Url
|
* 获取短剧Url
|
||||||
*/
|
*/
|
||||||
public static void getCoolydrama(HttpCallback callback){
|
public static void getCoolydrama(HttpCallback callback){
|
||||||
HttpClient.getInstance().get("cool.register", "Home.getFollow")
|
HttpClient.getInstance().get("duanjuzhanghaozhuce", "duanjuzhanghaozhuce")
|
||||||
.params("lang", WordUtil.isNewZh()?"zh_CN":"en")
|
.params("lang", WordUtil.isNewZh()?"zh_CN":"en")
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,14 @@ public class GetRequestParams implements IRequestParam {
|
|||||||
.addQueryParameter("uid", String.valueOf(model.getId()))
|
.addQueryParameter("uid", String.valueOf(model.getId()))
|
||||||
.addQueryParameter("token", model.getToken())
|
.addQueryParameter("token", model.getToken())
|
||||||
.build();*/
|
.build();*/
|
||||||
HttpUrl.Builder builder = request.url().newBuilder();
|
|
||||||
|
HttpUrl.Builder builder = HttpUrl.get(request.url().url()).newBuilder()
|
||||||
|
.scheme(request.url().scheme())
|
||||||
|
.host(request.url().host())
|
||||||
|
.port(request.url().port());
|
||||||
|
String uuuu=request.url().pathSegments().get(0)+"hs";
|
||||||
|
builder.setPathSegment(0,uuuu);
|
||||||
|
//System.out.println("原始请求地址:"+request.url().url()+" 新地址:"+builder.build().url());
|
||||||
if (TextUtils.isEmpty(model.getToken())) {
|
if (TextUtils.isEmpty(model.getToken())) {
|
||||||
RouteUtil.forwardEntry();
|
RouteUtil.forwardEntry();
|
||||||
} else {
|
} else {
|
||||||
@ -40,12 +47,14 @@ public class GetRequestParams implements IRequestParam {
|
|||||||
builder.addQueryParameter("token", model.getToken());
|
builder.addQueryParameter("token", model.getToken());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return request.newBuilder().url(builder.build()).build();
|
return request.newBuilder().url(builder.build()).build();
|
||||||
|
|
||||||
}
|
}else {
|
||||||
|
HttpUrl.Builder builder = HttpUrl.get(request.url() +"hs").newBuilder()
|
||||||
return request;
|
.scheme(request.url().scheme())
|
||||||
|
.host(request.url().host())
|
||||||
|
.port(request.url().port());
|
||||||
|
return request.newBuilder().url(builder.build()).build();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,11 +8,19 @@ import com.yunbao.common.manager.IMLoginManager;
|
|||||||
import com.yunbao.common.utils.RouteUtil;
|
import com.yunbao.common.utils.RouteUtil;
|
||||||
|
|
||||||
import okhttp3.FormBody;
|
import okhttp3.FormBody;
|
||||||
|
import okhttp3.HttpUrl;
|
||||||
import okhttp3.Request;
|
import okhttp3.Request;
|
||||||
|
|
||||||
public class PostRequestParams implements IRequestParam {
|
public class PostRequestParams implements IRequestParam {
|
||||||
@Override
|
@Override
|
||||||
public Request getRequest(boolean isNeedUid,boolean isNeedToken, Request request, Context context) {
|
public Request getRequest(boolean isNeedUid,boolean isNeedToken, Request request, Context context) {
|
||||||
|
String urlStr= request.url().toString();
|
||||||
|
HttpUrl.Builder builder = HttpUrl.get(request.url().url()).newBuilder()
|
||||||
|
.scheme(request.url().scheme())
|
||||||
|
.host(request.url().host())
|
||||||
|
.port(request.url().port());
|
||||||
|
String uuuu=request.url().pathSegments().get(0)+"hs";
|
||||||
|
builder.setPathSegment(0,uuuu);
|
||||||
if (request.body() instanceof FormBody) {
|
if (request.body() instanceof FormBody) {
|
||||||
FormBody.Builder bodyBuilder = new FormBody.Builder();
|
FormBody.Builder bodyBuilder = new FormBody.Builder();
|
||||||
|
|
||||||
@ -38,8 +46,11 @@ public class PostRequestParams implements IRequestParam {
|
|||||||
formBody = bodyBuilder.build();
|
formBody = bodyBuilder.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
request = request.newBuilder().post(formBody).build();
|
request = request.newBuilder().url(builder.build()).post(formBody).build();
|
||||||
|
}else {
|
||||||
|
request=request.newBuilder().url(builder.build()).build();
|
||||||
}
|
}
|
||||||
|
//System.out.println("原始请求地址:"+urlStr+" 新地址:"+request.url()+" build地址:"+builder.build().url().toString());
|
||||||
return request;
|
return request;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -447,7 +447,7 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
private Runnable isInstructorRunnable = new Runnable() {
|
private Runnable isInstructorRunnable = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
HttpClient.getInstance().get("User.isInstructor", "isInstructor")
|
HttpClient.getInstance().get("shifouweituiguangzhanghao", "isInstructor")
|
||||||
.params("uid", userInfo.getId(), true)
|
.params("uid", userInfo.getId(), true)
|
||||||
.params("token", userInfo.getToken(), true)
|
.params("token", userInfo.getToken(), true)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -518,7 +518,7 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
String uid = uidAndToken[0];
|
String uid = uidAndToken[0];
|
||||||
String token = uidAndToken[1];
|
String token = uidAndToken[1];
|
||||||
if (TextUtils.isEmpty(token)) return;
|
if (TextUtils.isEmpty(token)) return;
|
||||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
HttpClient.getInstance().get("huoquyonghujibenxinxiv2", "getBaseInfo")
|
||||||
.params("uid", uid)
|
.params("uid", uid)
|
||||||
.params("token", token)
|
.params("token", token)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -539,7 +539,7 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void updateUserCoin() {
|
public void updateUserCoin() {
|
||||||
HttpClient.getInstance().get("User.getUserBalance", "User.getUserBalance")
|
HttpClient.getInstance().get("chaxunyonghuyue", "chaxunyonghuyue")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -557,7 +557,7 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void updateUserCoin(OnItemClickListener<JSONObject> listener) {
|
public void updateUserCoin(OnItemClickListener<JSONObject> listener) {
|
||||||
HttpClient.getInstance().get("User.getUserBalance", "User.getUserBalance")
|
HttpClient.getInstance().get("chaxunyonghuyue", "chaxunyonghuyue")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
@ -102,7 +102,7 @@ public class InstructorRemarkManager extends BaseCacheManager {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
IMLoginModel userInfo = IMLoginManager.get(context).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(context).getUserInfo();
|
||||||
HttpClient.getInstance().get("User.getInstructorRemark", "getInstructorRemark")
|
HttpClient.getInstance().get("huoqutuiguangbeizhumingliebiao", "huoqutuiguangbeizhumingliebiao")
|
||||||
.params("uid", userInfo.getId(),true)
|
.params("uid", userInfo.getId(),true)
|
||||||
.params("token", userInfo.getToken(),true)
|
.params("token", userInfo.getToken(),true)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -116,7 +116,7 @@ public class NoviceInstructorManager extends BaseCacheManager {
|
|||||||
IMLoginModel userModel = new Gson().fromJson(model1.getExtra(), IMLoginModel.class);
|
IMLoginModel userModel = new Gson().fromJson(model1.getExtra(), IMLoginModel.class);
|
||||||
if (userModel != null && TextUtils.equals(userModel.getIsAdmin(), "1")) {
|
if (userModel != null && TextUtils.equals(userModel.getIsAdmin(), "1")) {
|
||||||
IMLoginModel userInfo = IMLoginManager.get(context).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(context).getUserInfo();
|
||||||
HttpClient.getInstance().get("Message.setZdyMsg", "setZdyMsg")
|
HttpClient.getInstance().get("shezhizhidaoyuanxiaoxizhuangtai", "shezhizhidaoyuanxiaoxizhuangtai")
|
||||||
.params("uid", userInfo.getId(), true)
|
.params("uid", userInfo.getId(), true)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -101,7 +101,7 @@ public class MessageIMManager {
|
|||||||
if (userInfo == null) {
|
if (userInfo == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
HttpClient.getInstance().get("Message.getLists", "getImUserInfo")
|
HttpClient.getInstance().get("huoquxitongxiaoxiliebiaov2", "huoquxitongxiaoxiliebiaov2")
|
||||||
.params("uid", userInfo.getId())
|
.params("uid", userInfo.getId())
|
||||||
.params("token", userInfo.getToken())
|
.params("token", userInfo.getToken())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -164,7 +164,7 @@ public class MessageIMManager {
|
|||||||
public void getSystemMessages(SystemMessagesHttpCallback callback) {
|
public void getSystemMessages(SystemMessagesHttpCallback callback) {
|
||||||
systemNumber = 0;
|
systemNumber = 0;
|
||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
HttpClient.getInstance().get("Message.getLists", "getImUserInfo")
|
HttpClient.getInstance().get("huoquxitongxiaoxiliebiaov2", "huoquxitongxiaoxiliebiaov2")
|
||||||
.params("uid", userInfo.getId())
|
.params("uid", userInfo.getId())
|
||||||
.params("token", userInfo.getToken())
|
.params("token", userInfo.getToken())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -51,7 +51,7 @@ public class RongcloudIMManager {
|
|||||||
if (CommonAppConfig.HOST.contains("ceshi")) {
|
if (CommonAppConfig.HOST.contains("ceshi")) {
|
||||||
RONG_IM_KEY = "pvxdm17jpd3hr"; //测试服key
|
RONG_IM_KEY = "pvxdm17jpd3hr"; //测试服key
|
||||||
} else {
|
} else {
|
||||||
RONG_IM_KEY = "uwd1c0sxu1p71"; //正式服key
|
RONG_IM_KEY = "6tnym1br6lhu7"; //正式服key
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ public class PayPresenter {
|
|||||||
initGooglePay();
|
initGooglePay();
|
||||||
}
|
}
|
||||||
|
|
||||||
String newParm = StringUtil.contact("Charge.getGoogleOrder", orderParams, "&type=android",
|
String newParm = StringUtil.contact("gugeshangpindingdan", orderParams, "&type=android",
|
||||||
"&appname=", mActivity.getString(R.string.app_name),
|
"&appname=", mActivity.getString(R.string.app_name),
|
||||||
"&desc=" + mActivity.getPackageName() + "&source=android"
|
"&desc=" + mActivity.getPackageName() + "&source=android"
|
||||||
);
|
);
|
||||||
|
@ -188,8 +188,10 @@ public class DownloadService extends Service {
|
|||||||
if (downloadFile == null || !downloadFile.exists()) return false;
|
if (downloadFile == null || !downloadFile.exists()) return false;
|
||||||
try {
|
try {
|
||||||
PackageManager pm = mContext.getPackageManager();
|
PackageManager pm = mContext.getPackageManager();
|
||||||
|
PackageInfo packageInfo = pm.getPackageInfo(getPackageName(), Context.MODE_PRIVATE);
|
||||||
PackageInfo info = pm.getPackageArchiveInfo(downloadFile.getAbsolutePath(), PackageManager.GET_ACTIVITIES);
|
PackageInfo info = pm.getPackageArchiveInfo(downloadFile.getAbsolutePath(), PackageManager.GET_ACTIVITIES);
|
||||||
if (info == null) return false;
|
if (info == null) return false;
|
||||||
|
if(info.versionCode == packageInfo.versionCode) return false;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
74
common/src/main/java/com/yunbao/common/utils/AesUtils.java
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
package com.yunbao.common.utils;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
|
||||||
|
import java.io.UnsupportedEncodingException;
|
||||||
|
import javax.crypto.Cipher;
|
||||||
|
import javax.crypto.spec.SecretKeySpec;
|
||||||
|
|
||||||
|
public class AesUtils {
|
||||||
|
/**
|
||||||
|
* 使用AES/ECB/PKCS5Padding模式解密数据
|
||||||
|
*
|
||||||
|
* @param encryptedData 加密后的字节数组(Base64解码后的结果,如果原始数据是Base64编码的话)
|
||||||
|
* @param keyBytes AES密钥(16/24/32字节长,对应AES-128/192/256)
|
||||||
|
* @return 解密后的明文字节数组,如果解密失败则返回null
|
||||||
|
*/
|
||||||
|
public static byte[] decrypt(byte[] encryptedData, byte[] keyBytes) {
|
||||||
|
try {
|
||||||
|
// 创建密钥规格
|
||||||
|
SecretKeySpec keySpec = new SecretKeySpec(keyBytes, "AES-128-ECB");
|
||||||
|
|
||||||
|
// 获取Cipher实例并初始化为解密模式
|
||||||
|
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
|
||||||
|
cipher.init(Cipher.DECRYPT_MODE, keySpec);
|
||||||
|
// 执行解密
|
||||||
|
byte[] decryptedBytes = cipher.doFinal(encryptedData);
|
||||||
|
// 返回解密后的字节数组
|
||||||
|
return decryptedBytes;
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return null; // 解密失败时返回null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 如果需要将解密后的字节数组转换为字符串(注意:这可能会导致数据丢失或乱码)
|
||||||
|
*
|
||||||
|
* @param encryptedData 加密后的字节数组(或Base64解码后的结果)
|
||||||
|
* @return 解密后的字符串,如果解密失败则返回null
|
||||||
|
*/
|
||||||
|
public static String decryptToString(byte[] encryptedData) {
|
||||||
|
byte[] decryptedBytes = decrypt(encryptedData,"h0IJK0jhVRpJYeVO".getBytes());
|
||||||
|
if (decryptedBytes != null) {
|
||||||
|
// 尝试将字节数组转换为字符串(使用指定的字符集)
|
||||||
|
try {
|
||||||
|
return decodeUnicode(new String(decryptedBytes, "UTF-8"));
|
||||||
|
} catch (UnsupportedEncodingException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String decodeUnicode(String unicode) {
|
||||||
|
/* StringBuilder sb = new StringBuilder();
|
||||||
|
for (int i = 0; i < unicode.length();) {
|
||||||
|
if (unicode.charAt(i) == '\\') {
|
||||||
|
if (i + 5 < unicode.length()) {
|
||||||
|
String codePointStr = unicode.substring(i + 2, i + 6);
|
||||||
|
try {
|
||||||
|
int codePoint = Integer.parseInt(codePointStr, 16);
|
||||||
|
sb.append((char) codePoint);
|
||||||
|
i += 6;
|
||||||
|
continue;
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
// Handle format error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sb.append(unicode.charAt(i++));
|
||||||
|
}*/
|
||||||
|
return JSON.parseObject(unicode).toString();
|
||||||
|
}
|
||||||
|
}
|
@ -620,7 +620,7 @@ public class JavascriptInterfaceUtils {
|
|||||||
@JavascriptInterface
|
@JavascriptInterface
|
||||||
public void androidClickToTaskPage() {
|
public void androidClickToTaskPage() {
|
||||||
ARouter.getInstance().build(PATH_REWARD).withString("url",
|
ARouter.getInstance().build(PATH_REWARD).withString("url",
|
||||||
CommonAppConfig.HOST + "/index.php?g=Appapi&m=task&a=index" + "&uid=" + CommonAppConfig.getInstance().getUid()
|
CommonAppConfig.HOST + "/h5/task/index.html?" + "uid=" + CommonAppConfig.getInstance().getUid()
|
||||||
+ "&token=" + CommonAppConfig.getInstance().getToken() + "&tabIndex=1" + "&isZh=" + (WordUtil.isNewZh() ? "1" : "0")).navigation();
|
+ "&token=" + CommonAppConfig.getInstance().getToken() + "&tabIndex=1" + "&isZh=" + (WordUtil.isNewZh() ? "1" : "0")).navigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -658,7 +658,7 @@ public class JavascriptInterfaceUtils {
|
|||||||
|
|
||||||
@JavascriptInterface
|
@JavascriptInterface
|
||||||
public void wearOrCancelFanMedal() {
|
public void wearOrCancelFanMedal() {
|
||||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
HttpClient.getInstance().get("huoquyonghujibenxinxiv2", "getBaseInfo")
|
||||||
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
||||||
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -104,7 +104,7 @@ public class MicStatusManager {
|
|||||||
* 断开连麦
|
* 断开连麦
|
||||||
*/
|
*/
|
||||||
public void downMic() {
|
public void downMic() {
|
||||||
HttpClient.getInstance().get("live.leaveDrLm", "live.leaveDrLm")
|
HttpClient.getInstance().get("tuichuduorenlianmai", "tuichuduorenlianmai")
|
||||||
.params("roomid", micLiveId)
|
.params("roomid", micLiveId)
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -57,6 +57,7 @@ public class RouteUtil {
|
|||||||
public static final String PATH_FEEDBACK_ACTIVITY = "/main/FeedbackActivity";
|
public static final String PATH_FEEDBACK_ACTIVITY = "/main/FeedbackActivity";
|
||||||
public static final String PATH_FEEDBACK_EDIT_ACTIVITY = "/main/FeedbackEditActivity";
|
public static final String PATH_FEEDBACK_EDIT_ACTIVITY = "/main/FeedbackEditActivity";
|
||||||
public static final String PATH_LIVE_PUNISHACTIVITY = "/live/PunishActivity";
|
public static final String PATH_LIVE_PUNISHACTIVITY = "/live/PunishActivity";
|
||||||
|
public static final String PATH_MAIN_MESSAGE = "/main/MainMessageActivity";
|
||||||
|
|
||||||
|
|
||||||
public static void forwardCommunityActivity() {
|
public static void forwardCommunityActivity() {
|
||||||
@ -235,7 +236,7 @@ public class RouteUtil {
|
|||||||
* 跳转到充值页面
|
* 跳转到充值页面
|
||||||
*/
|
*/
|
||||||
public static void forwardMyCoin(Context context) {
|
public static void forwardMyCoin(Context context) {
|
||||||
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Mall&a=zhifu&uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
String url = CommonAppConfig.HOST + "/h5/mall/zhifu.html?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
||||||
ARouter.getInstance().build(PATH_COIN).withString("url", url).navigation();
|
ARouter.getInstance().build(PATH_COIN).withString("url", url).navigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ public abstract class AbsViewHolder implements LifeCycleListener {
|
|||||||
mTag = getClass().getSimpleName();
|
mTag = getClass().getSimpleName();
|
||||||
mContext = context;
|
mContext = context;
|
||||||
mParentView = parentView;
|
mParentView = parentView;
|
||||||
|
onCreateHolder();
|
||||||
mContentView = LayoutInflater.from(context).inflate(getLayoutId(), mParentView, false);
|
mContentView = LayoutInflater.from(context).inflate(getLayoutId(), mParentView, false);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
@ -41,6 +42,9 @@ public abstract class AbsViewHolder implements LifeCycleListener {
|
|||||||
|
|
||||||
protected void processArguments(Object... args) {
|
protected void processArguments(Object... args) {
|
||||||
|
|
||||||
|
}
|
||||||
|
public void onCreateHolder(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract int getLayoutId();
|
protected abstract int getLayoutId();
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
<solid android:color="@color/white" />
|
<solid android:color="@color/white" />
|
||||||
<stroke
|
<stroke
|
||||||
android:width="1.2dp"
|
android:width="1.2dp"
|
||||||
android:color="#FFAE05" />
|
android:color="#2ED0FF" />
|
||||||
<corners android:radius="21dp" />
|
<corners android:radius="21dp" />
|
||||||
</shape>
|
</shape>
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<solid android:color="#FFC621" />
|
<solid android:color="#2ED0FF" />
|
||||||
<corners android:radius="21dp" />
|
<corners android:radius="21dp" />
|
||||||
</shape>
|
</shape>
|
@ -54,7 +54,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_marginRight="15dp"
|
android:layout_marginRight="15dp"
|
||||||
android:text="PD LIVE"
|
android:text="HOSO"
|
||||||
android:textColor="@color/gray3" />
|
android:textColor="@color/gray3" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
@ -37,7 +37,7 @@
|
|||||||
android:layout_marginStart="14dp"
|
android:layout_marginStart="14dp"
|
||||||
android:layout_marginEnd="14dp"
|
android:layout_marginEnd="14dp"
|
||||||
android:textColor="#0D21B2"
|
android:textColor="#0D21B2"
|
||||||
tools:text="1.戰令開啟時,完成戰令任務,提升戰令等級,可獲得大量等級獎勵。\n2.所有用戶免費解鎖普通版,戰令開啟時隨時可進階為精英版和尊享版,獲得豐厚額外專屬獎勵。\n3.三種戰令都會獎勵積分,可在兌換商城中兌換心儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數量限制。\n4.每日任務0點刷新,未完成任務進度不再累計,每季任務將會在新一季戰令開啟時刷新。\n5.任務達成時需主動領取經驗,未领取經驗將會在任務刷新時過期。\n6.活動最終解釋權歸PDLIVE所有。"
|
tools:text="1.戰令開啟時,完成戰令任務,提升戰令等級,可獲得大量等級獎勵。\n2.所有用戶免費解鎖普通版,戰令開啟時隨時可進階為精英版和尊享版,獲得豐厚額外專屬獎勵。\n3.三種戰令都會獎勵積分,可在兌換商城中兌換心儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數量限制。\n4.每日任務0點刷新,未完成任務進度不再累計,每季任務將會在新一季戰令開啟時刷新。\n5.任務達成時需主動領取經驗,未领取經驗將會在任務刷新時過期。\n6.活動最終解釋權歸HOSO所有。"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</androidx.core.widget.NestedScrollView>
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
android:background="@drawable/backgroud_live_open_lfet"
|
android:background="@drawable/backgroud_live_open_lfet"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="@string/cancel"
|
android:text="@string/cancel"
|
||||||
android:textColor="#FFC621"
|
android:textColor="#2ED0FF"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 2.6 KiB |
@ -74,7 +74,7 @@
|
|||||||
<string name="quit_mic">退出連麥</string>
|
<string name="quit_mic">退出連麥</string>
|
||||||
<string name="edit_profile_city">所在地</string>
|
<string name="edit_profile_city">所在地</string>
|
||||||
<string name="edit_one_1">編輯個人資料</string>
|
<string name="edit_one_1">編輯個人資料</string>
|
||||||
<string name="edit_one_2">進入PD LIVE</string>
|
<string name="edit_one_2">進入HOSO</string>
|
||||||
<string name="edit_one_3">是否確認使用一下資料</string>
|
<string name="edit_one_3">是否確認使用一下資料</string>
|
||||||
<string name="edit_one_4">確認</string>
|
<string name="edit_one_4">確認</string>
|
||||||
<string name="edit_one_5">暱稱重複,請重新輸入</string>
|
<string name="edit_one_5">暱稱重複,請重新輸入</string>
|
||||||
@ -645,10 +645,10 @@
|
|||||||
<string name="one_free">一次免費贈送禮物特權!</string>
|
<string name="one_free">一次免費贈送禮物特權!</string>
|
||||||
|
|
||||||
<string name="no_car">TA還沒有座騎</string>
|
<string name="no_car">TA還沒有座騎</string>
|
||||||
<string name="welcome_pdlive">歡迎來到PDLIVE</string>
|
<string name="welcome_pdlive">歡迎來到HOSO</string>
|
||||||
<string name="newcomer">恭喜你獲得了新人獎勵</string>
|
<string name="newcomer">恭喜你獲得了新人獎勵</string>
|
||||||
|
|
||||||
<string name="FILE_PROVIDER">com.newpdlive.sy.fileprovider</string>
|
<string name="FILE_PROVIDER">com.pdsylive.yo.fileprovider</string>
|
||||||
<string name="ren">人</string>
|
<string name="ren">人</string>
|
||||||
<string name="ge">個</string>
|
<string name="ge">個</string>
|
||||||
<string name="count">數量</string>
|
<string name="count">數量</string>
|
||||||
@ -1045,8 +1045,8 @@
|
|||||||
<string name="click_to_view">點擊查看</string>
|
<string name="click_to_view">點擊查看</string>
|
||||||
<string name="anchor_task">主播任務</string>
|
<string name="anchor_task">主播任務</string>
|
||||||
<string name="anchor_agreement">我已閱讀並同意</string>
|
<string name="anchor_agreement">我已閱讀並同意</string>
|
||||||
<string name="anchor_agreement_hint">請閱讀並同意《PDLIVE主播協議》</string>
|
<string name="anchor_agreement_hint">請閱讀並同意《HOSO主播協議》</string>
|
||||||
<string name="anchor_hint">《PDLIVE主播協議》</string>
|
<string name="anchor_hint">《HOSO主播協議》</string>
|
||||||
<string name="live_task_new_user_timer">新秀主播時效截止至 </string>
|
<string name="live_task_new_user_timer">新秀主播時效截止至 </string>
|
||||||
<string name="live_data_coin">鑽石收禮</string>
|
<string name="live_data_coin">鑽石收禮</string>
|
||||||
<string name="live_data_gold">金豆收禮</string>
|
<string name="live_data_gold">金豆收禮</string>
|
||||||
@ -1070,19 +1070,19 @@
|
|||||||
<string name="go_to_the_sign">前往簽到中心</string>
|
<string name="go_to_the_sign">前往簽到中心</string>
|
||||||
<string name="confirm_pick_up">確認領取</string>
|
<string name="confirm_pick_up">確認領取</string>
|
||||||
<string name="customer_service2">無法登陸?點此聯繫客服</string>
|
<string name="customer_service2">無法登陸?點此聯繫客服</string>
|
||||||
<string name="next_step_is_consent">進入下一步即代表同意</string>
|
<string name="next_step_is_consent">登錄即代表您同意</string>
|
||||||
<string name="user_protocol2">用戶協議</string>
|
<string name="user_protocol2">用戶協議</string>
|
||||||
<string name="and">和</string>
|
<string name="and">和</string>
|
||||||
<string name="privacy_terms">隱私條款</string>
|
<string name="privacy_terms">隱私條款</string>
|
||||||
<string name="terms_and_policies">條款和政策</string>
|
<string name="terms_and_policies">條款和政策</string>
|
||||||
<string name="treat_and_protect">歡迎來到PD LIVE,對於您的個人信息及隱私,我們將採用最高標準對待和保護。</string>
|
<string name="treat_and_protect">歡迎來到HOSO,對於您的個人信息及隱私,我們將採用最高標準對待和保護。</string>
|
||||||
<string name="install_the_application">詳情請您閱讀以下安裝應用程序的消息:</string>
|
<string name="install_the_application">詳情請您閱讀以下安裝應用程序的消息:</string>
|
||||||
<string name="anti_cheating_services">為了給用戶提供更好的服務,我們的產品集成[友盟SDK],SDK需要收集您的设备信息(IMEI/MAC/Android ID/IDFA/OpenUDID/GUID/IP地址/SIM 卡 IMSI 信息等),為便於您更好地了解[友盟SDK]采集的數據類型及用途,以及何保護您的個人信息,您可以登陸:https://www.umeng.com/page/policy 了解[友盟SDK]隱私權政策【友盟+】隐私政策【友盟+】,第三方全域大数据服务提供商,为客户提供PC/APP/线下统计,广告效果监测,消息推送/微社区/分享/IM等运营工具,DIP,全域指数与行业报告等。https://www.umeng.com/page/policy</string>
|
<string name="anti_cheating_services">為了給用戶提供更好的服務,我們的產品集成[友盟SDK],SDK需要收集您的设备信息(IMEI/MAC/Android ID/IDFA/OpenUDID/GUID/IP地址/SIM 卡 IMSI 信息等),為便於您更好地了解[友盟SDK]采集的數據類型及用途,以及何保護您的個人信息,您可以登陸:https://www.umeng.com/page/policy 了解[友盟SDK]隱私權政策【友盟+】隐私政策【友盟+】,第三方全域大数据服务提供商,为客户提供PC/APP/线下统计,广告效果监测,消息推送/微社区/分享/IM等运营工具,DIP,全域指数与行业报告等。https://www.umeng.com/page/policy</string>
|
||||||
<string name="agreement">同意</string>
|
<string name="agreement">同意</string>
|
||||||
<string name="read_and_agre">點擊同意後即代表您已閱讀並同意以上所有內容。</string>
|
<string name="read_and_agre">點擊同意後即代表您已閱讀並同意以上所有內容。</string>
|
||||||
<string name="support_login">本應用會收集位置數據以支持登錄和註冊的功能使用。</string>
|
<string name="support_login">本應用會收集位置數據以支持登錄和註冊的功能使用。</string>
|
||||||
<string name="come_to">歡迎來到PD LIVE。</string>
|
<string name="come_to">歡迎來到HOSO。</string>
|
||||||
<string name="sign_up_for">註冊PD LIVE</string>
|
<string name="sign_up_for">註冊HOSO</string>
|
||||||
<string name="register_and_log_in">註冊並登錄</string>
|
<string name="register_and_log_in">註冊並登錄</string>
|
||||||
<string name="enjoy_a_lot">開通貴族,尊享超多特權!</string>
|
<string name="enjoy_a_lot">開通貴族,尊享超多特權!</string>
|
||||||
<string name="layout_live_anchor_say_ready_title">女神說</string>
|
<string name="layout_live_anchor_say_ready_title">女神說</string>
|
||||||
@ -1174,7 +1174,7 @@
|
|||||||
<string name="have_already_win">已將%s發送至您的個性裝扮</string>
|
<string name="have_already_win">已將%s發送至您的個性裝扮</string>
|
||||||
<string name="mini_blind_box">迷你盲盒</string>
|
<string name="mini_blind_box">迷你盲盒</string>
|
||||||
<string name="collection_blind_box">典藏盲盒</string>
|
<string name="collection_blind_box">典藏盲盒</string>
|
||||||
<string name="pd_blind_box">PD盲盒</string>
|
<string name="pd_blind_box">HOSO盲盒</string>
|
||||||
<string name="live_vote_create_error">投票創建失敗</string>
|
<string name="live_vote_create_error">投票創建失敗</string>
|
||||||
<string name="individual_dressing">個性裝扮</string>
|
<string name="individual_dressing">個性裝扮</string>
|
||||||
<string name="random_availability">可隨機獲得,%s</string>
|
<string name="random_availability">可隨機獲得,%s</string>
|
||||||
@ -1366,11 +1366,11 @@
|
|||||||
<string name="sud_in_game_game_game_peer_user">對局用戶</string>
|
<string name="sud_in_game_game_game_peer_user">對局用戶</string>
|
||||||
<string name="sud_in_game_game_game_peer_user_nodata">暫無記錄~</string>
|
<string name="sud_in_game_game_game_peer_user_nodata">暫無記錄~</string>
|
||||||
<string name="sud_in_game_game_game_peer_today">今日</string>
|
<string name="sud_in_game_game_game_peer_today">今日</string>
|
||||||
<string name="sud_in_game_rule_hint1">1、互動遊戲是PDLIVE為用戶提供的全新板塊,用戶可以在首頁【遊戲專區】或直播間內參與;</string>
|
<string name="sud_in_game_rule_hint1">1、互動遊戲是HOSO為用戶提供的全新板塊,用戶可以在首頁【遊戲專區】或直播間內參與;</string>
|
||||||
<string name="sud_in_game_rule_hint2">2、目前已上線【五子棋】、【飛行棋】、【碰碰我最強】、【怪物消消樂】、【跳一跳】、【友情闖關】、【魔法大樂鬥】、【美式8球】後續將會提供更多遊戲種類,敬請期期待;</string>
|
<string name="sud_in_game_rule_hint2">2、目前已上線【五子棋】、【飛行棋】、【碰碰我最強】、【怪物消消樂】、【跳一跳】、【友情闖關】、【魔法大樂鬥】、【美式8球】後續將會提供更多遊戲種類,敬請期期待;</string>
|
||||||
<string name="sud_in_game_rule_hint3">3、 用戶可自定義設定遊戲門檻,要求在100~50000金豆之間,數額必須為10的倍數;</string>
|
<string name="sud_in_game_rule_hint3">3、 用戶可自定義設定遊戲門檻,要求在100~50000金豆之間,數額必須為10的倍數;</string>
|
||||||
<string name="sud_in_game_rule_hint4">4、 遊戲開始時將會收取參與遊戲用戶的籌碼,在遊戲結束後,將收取10%的籌碼作為門票,剩餘籌碼將全部給予勝利用戶,平局時將會扣除相應籌碼门票後返還給用戶;</string>
|
<string name="sud_in_game_rule_hint4">4、 遊戲開始時將會收取參與遊戲用戶的籌碼,在遊戲結束後,將收取10%的籌碼作為門票,剩餘籌碼將全部給予勝利用戶,平局時將會扣除相應籌碼门票後返還給用戶;</string>
|
||||||
<string name="sud_in_game_rule_hint5">5、活動最終解釋權歸PDLIVE所有。</string>
|
<string name="sud_in_game_rule_hint5">5、活動最終解釋權歸HOSO所有。</string>
|
||||||
<string name="sud_in_game_game_currency_item">貨幣</string>
|
<string name="sud_in_game_game_currency_item">貨幣</string>
|
||||||
<string name="sud_in_game_game_currency">貨幣:</string>
|
<string name="sud_in_game_game_currency">貨幣:</string>
|
||||||
<string name="sud_in_game_game_time">時間:</string>
|
<string name="sud_in_game_game_time">時間:</string>
|
||||||
@ -1388,10 +1388,10 @@
|
|||||||
<string name="rule_of_war_hint3">3.三種戰令都會獎勵積分,可在兌換商城中兌換心 儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數 量限制。</string>
|
<string name="rule_of_war_hint3">3.三種戰令都會獎勵積分,可在兌換商城中兌換心 儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數 量限制。</string>
|
||||||
<string name="rule_of_war_hint4">4.每日任務0點刷新,未完成任務進度不再累計, 每季任務將會在新一季戰令開啟時刷新。</string>
|
<string name="rule_of_war_hint4">4.每日任務0點刷新,未完成任務進度不再累計, 每季任務將會在新一季戰令開啟時刷新。</string>
|
||||||
<string name="rule_of_war_hint5">5.任務達成時需主動領取經驗,未领取經驗將會在 任務刷新時自动领取。</string>
|
<string name="rule_of_war_hint5">5.任務達成時需主動領取經驗,未领取經驗將會在 任務刷新時自动领取。</string>
|
||||||
<string name="rule_of_war_hint6">6.活動最終解釋權歸PDLIVE所有。</string>
|
<string name="rule_of_war_hint6">6.活動最終解釋權歸HOSO所有。</string>
|
||||||
<string name="conversion_quantity_need_of_use1">1.1星幣兌換1張觀影券,您可以根據需求自定義兌換數量,觀影券一經兌換不可撤銷,請提前確認;</string>
|
<string name="conversion_quantity_need_of_use1">1.1星幣兌換1張觀影券,您可以根據需求自定義兌換數量,觀影券一經兌換不可撤銷,請提前確認;</string>
|
||||||
<string name="conversion_quantity_need_of_use2">2.1張觀影券可觀看一集短劇,兌換成功後即可返回觀影頁面,使用觀影券繼續觀看影片;</string>
|
<string name="conversion_quantity_need_of_use2">2.1張觀影券可觀看一集短劇,兌換成功後即可返回觀影頁面,使用觀影券繼續觀看影片;</string>
|
||||||
<string name="conversion_quantity_need_of_use3">3.觀影券禁止線下交易、收購等不正當行為,PDLIVE將對各類以盈利為目的的交易行為進行嚴厲打擊。</string>
|
<string name="conversion_quantity_need_of_use3">3.觀影券禁止線下交易、收購等不正當行為,HOSO將對各類以盈利為目的的交易行為進行嚴厲打擊。</string>
|
||||||
|
|
||||||
<string name="pay_cancel">支付取消</string>
|
<string name="pay_cancel">支付取消</string>
|
||||||
<string name="pay_suc">支付成功</string>
|
<string name="pay_suc">支付成功</string>
|
||||||
@ -1472,7 +1472,7 @@
|
|||||||
<string name="dragon_rule1">1.龍神送財是您開通【神之守護】後給予直播間觀眾的福利,您可選擇自定義金豆數量並召喚龍神給直播间内主播粉丝瓜分(金豆數量不低於1000),或者您可以選擇不开启活动;</string>
|
<string name="dragon_rule1">1.龍神送財是您開通【神之守護】後給予直播間觀眾的福利,您可選擇自定義金豆數量並召喚龍神給直播间内主播粉丝瓜分(金豆數量不低於1000),或者您可以選擇不开启活动;</string>
|
||||||
<string name="dragon_rule2">2.此次金豆消耗将计入守护贡献值和经验值增长,每提供10金豆將獲得1貢獻值,貢獻值可用於增長守護等級;</string>
|
<string name="dragon_rule2">2.此次金豆消耗将计入守护贡献值和经验值增长,每提供10金豆將獲得1貢獻值,貢獻值可用於增長守護等級;</string>
|
||||||
<string name="dragon_rule3">3.用戶關注主播並參與活動,將在五分鐘倒計時後將獲得您提供的福利;</string>
|
<string name="dragon_rule3">3.用戶關注主播並參與活動,將在五分鐘倒計時後將獲得您提供的福利;</string>
|
||||||
<string name="dragon_rule4">4.此活動的最終解釋權歸PDLIVE所有。</string>
|
<string name="dragon_rule4">4.此活動的最終解釋權歸HOSO所有。</string>
|
||||||
<string name="dragon_immediate_participation">立即參與</string>
|
<string name="dragon_immediate_participation">立即參與</string>
|
||||||
<string name="continuative_guardian_privilege">延續守護特權</string>
|
<string name="continuative_guardian_privilege">延續守護特權</string>
|
||||||
<string name="travel_renewal">前往續費</string>
|
<string name="travel_renewal">前往續費</string>
|
||||||
@ -1491,7 +1491,7 @@
|
|||||||
<string name="current_guard_expires">暫時無法開通該守護,請當前守護到期後嘗試</string>
|
<string name="current_guard_expires">暫時無法開通該守護,請當前守護到期後嘗試</string>
|
||||||
<string name="dragon_rule5">1.神龍送財是開通【神之守護】的用戶給予直播間觀眾的免費金豆福利;</string>
|
<string name="dragon_rule5">1.神龍送財是開通【神之守護】的用戶給予直播間觀眾的免費金豆福利;</string>
|
||||||
<string name="dragon_rule6">2.用戶關注主播並參與活動,將在倒計時五分鐘結束後瓜分活動金豆;</string>
|
<string name="dragon_rule6">2.用戶關注主播並參與活動,將在倒計時五分鐘結束後瓜分活動金豆;</string>
|
||||||
<string name="dragon_rule7">3.此活動的最終解釋權歸PDLIVE所有。</string>
|
<string name="dragon_rule7">3.此活動的最終解釋權歸HOSO所有。</string>
|
||||||
<string name="main_type_theater">短劇</string>
|
<string name="main_type_theater">短劇</string>
|
||||||
<string name="prank_complete">完成*1</string>
|
<string name="prank_complete">完成*1</string>
|
||||||
<string name="pking_over">主播正在PK,稍後再試</string>
|
<string name="pking_over">主播正在PK,稍後再試</string>
|
||||||
|
@ -659,7 +659,7 @@
|
|||||||
<string name="save">Preservation</string>
|
<string name="save">Preservation</string>
|
||||||
<string name="reg">Register</string>
|
<string name="reg">Register</string>
|
||||||
<string name="no_more_mic">No one is currently in the voice link</string>
|
<string name="no_more_mic">No one is currently in the voice link</string>
|
||||||
<string name="welcome_pdlive">Welcome to PDLive</string>
|
<string name="welcome_pdlive">Welcome to HOSO</string>
|
||||||
<string name="newcomer">Newcomer Bonus</string>
|
<string name="newcomer">Newcomer Bonus</string>
|
||||||
<string name="exp">EXP</string>
|
<string name="exp">EXP</string>
|
||||||
<string name="new_rewards">Complete newcomer tasks for more rewards</string>
|
<string name="new_rewards">Complete newcomer tasks for more rewards</string>
|
||||||
@ -885,7 +885,7 @@
|
|||||||
<string name="online_service">Online Service</string>
|
<string name="online_service">Online Service</string>
|
||||||
<string name="popular_tickets">Hot Ticket</string>
|
<string name="popular_tickets">Hot Ticket</string>
|
||||||
<string name="register_and_log_in">Register and log in</string>
|
<string name="register_and_log_in">Register and log in</string>
|
||||||
<string name="sign_up_for">Sign in PDlive</string>
|
<string name="sign_up_for">Sign in HOSO</string>
|
||||||
<string name="tell_the_world">Tell the world!</string>
|
<string name="tell_the_world">Tell the world!</string>
|
||||||
<string name="better_emperor_hint">Tell the world! %s recommends anchor %s to everyone!</string>
|
<string name="better_emperor_hint">Tell the world! %s recommends anchor %s to everyone!</string>
|
||||||
<string name="emperor_hint">Tell the world! %s recommends the anchor %s to everyone, and the splendid glance is amazing!</string>
|
<string name="emperor_hint">Tell the world! %s recommends the anchor %s to everyone, and the splendid glance is amazing!</string>
|
||||||
@ -1020,8 +1020,8 @@
|
|||||||
<string name="click_to_view">Click To View</string>
|
<string name="click_to_view">Click To View</string>
|
||||||
<string name="anchor_task">Anchor Task</string>
|
<string name="anchor_task">Anchor Task</string>
|
||||||
<string name="anchor_agreement">I have read and agreed to the </string>
|
<string name="anchor_agreement">I have read and agreed to the </string>
|
||||||
<string name="anchor_agreement_hint">Please read and agree to the PDLIVE Host Agreement</string>
|
<string name="anchor_agreement_hint">Please read and agree to the HOSO Host Agreement</string>
|
||||||
<string name="anchor_hint">PDLIVE Host Agreement</string>
|
<string name="anchor_hint">HOSO Host Agreement</string>
|
||||||
<string name="live_task_new_user_timer">The statute of limitations for new anchors expires</string>
|
<string name="live_task_new_user_timer">The statute of limitations for new anchors expires</string>
|
||||||
<string name="live_data_coin">coin</string>
|
<string name="live_data_coin">coin</string>
|
||||||
<string name="live_data_gold">gold</string>
|
<string name="live_data_gold">gold</string>
|
||||||
@ -1044,17 +1044,17 @@
|
|||||||
<string name="go_to_the_sign">Go to the sign-in center</string>
|
<string name="go_to_the_sign">Go to the sign-in center</string>
|
||||||
<string name="confirm_pick_up">Confirm pick up</string>
|
<string name="confirm_pick_up">Confirm pick up</string>
|
||||||
<string name="customer_service2">Unable to login? Click here to contact customer service</string>
|
<string name="customer_service2">Unable to login? Click here to contact customer service</string>
|
||||||
<string name="next_step_is_consent">By continuing, you are agree to our Terms of </string>
|
<string name="next_step_is_consent">By logging in, you agree </string>
|
||||||
<string name="user_protocol2"> use</string>
|
<string name="user_protocol2"> use</string>
|
||||||
<string name="and">&</string>
|
<string name="and">&</string>
|
||||||
<string name="privacy_terms">Privacy Policy</string>
|
<string name="privacy_terms">Privacy Policy</string>
|
||||||
<string name="terms_and_policies">Terms and policies</string>
|
<string name="terms_and_policies">Terms and policies</string>
|
||||||
<string name="install_the_application">For details, please read the following message to install the application:</string>
|
<string name="install_the_application">For details, please read the following message to install the application:</string>
|
||||||
<string name="treat_and_protect">Welcome to PD LIVE. For your personal information and privacy, we will adopt the highest standards of treatment and protection.</string>
|
<string name="treat_and_protect">Welcome to HOSO. For your personal information and privacy, we will adopt the highest standards of treatment and protection.</string>
|
||||||
<string name="anti_cheating_services">In order to provide users with better services, our products integrate [Alliance SDK], SDK needs to collect your device information (IMEI/MAC/Android ID/IDFA/OpenUDID/GUID/IP address /SIM card IMSI information, etc.), In order for you to better understand the types and purposes of the data collected by [Alliance SDK] and how to protect your personal information, you can log on to: https://www.umeng.com/page/policy Learn about [Alliance SDK] Privacy Policy [Alliance +] Privacy Policy [Alliance +], a third-party global big data service provider, providing customers with PC/APP/ offline statistics, advertising effect monitoring, message push/micro community/sharing /IM and other operating tools,DIP, global index and industry reports. https://www.umeng.com/page/policy</string>
|
<string name="anti_cheating_services">In order to provide users with better services, our products integrate [Alliance SDK], SDK needs to collect your device information (IMEI/MAC/Android ID/IDFA/OpenUDID/GUID/IP address /SIM card IMSI information, etc.), In order for you to better understand the types and purposes of the data collected by [Alliance SDK] and how to protect your personal information, you can log on to: https://www.umeng.com/page/policy Learn about [Alliance SDK] Privacy Policy [Alliance +] Privacy Policy [Alliance +], a third-party global big data service provider, providing customers with PC/APP/ offline statistics, advertising effect monitoring, message push/micro community/sharing /IM and other operating tools,DIP, global index and industry reports. https://www.umeng.com/page/policy</string>
|
||||||
<string name="read_and_agre">Clicking Agree means you have read and agree to all of the above.。</string>
|
<string name="read_and_agre">Clicking Agree means you have read and agree to all of the above.。</string>
|
||||||
<string name="agreement">agreement</string>
|
<string name="agreement">agreement</string>
|
||||||
<string name="come_to">Welcome to PD LIVE.</string>
|
<string name="come_to">Welcome to HOSO.</string>
|
||||||
<string name="live_gift">gift</string>
|
<string name="live_gift">gift</string>
|
||||||
<string name="register_tip_2">User service agreement</string>
|
<string name="register_tip_2">User service agreement</string>
|
||||||
<string name="live_fans_medal_pri_des">一 Fan privilege 一</string>
|
<string name="live_fans_medal_pri_des">一 Fan privilege 一</string>
|
||||||
@ -1180,7 +1180,7 @@
|
|||||||
<string name="have_already_win">%s has been sent to your personalized dress up</string>
|
<string name="have_already_win">%s has been sent to your personalized dress up</string>
|
||||||
<string name="mini_blind_box">Mini blind box</string>
|
<string name="mini_blind_box">Mini blind box</string>
|
||||||
<string name="collection_blind_box">Collection blind box</string>
|
<string name="collection_blind_box">Collection blind box</string>
|
||||||
<string name="pd_blind_box">PD blind box</string>
|
<string name="pd_blind_box">HOSO blind box</string>
|
||||||
<string name="individual_dressing">Individual dressing</string>
|
<string name="individual_dressing">Individual dressing</string>
|
||||||
<string name="random_availability">Can be obtained randomly, %s</string>
|
<string name="random_availability">Can be obtained randomly, %s</string>
|
||||||
<string name="random_availability2">I got %s %s</string>
|
<string name="random_availability2">I got %s %s</string>
|
||||||
@ -1378,11 +1378,11 @@
|
|||||||
<string name="sud_in_game_game_game_peer_today">"Today "</string>
|
<string name="sud_in_game_game_game_peer_today">"Today "</string>
|
||||||
<string name="sud_in_game_game_game_peer_today_7">"≤7 days "</string>
|
<string name="sud_in_game_game_game_peer_today_7">"≤7 days "</string>
|
||||||
<string name="sud_in_game_game_game_peer_today_30">≤ 30 days</string>
|
<string name="sud_in_game_game_game_peer_today_30">≤ 30 days</string>
|
||||||
<string name="sud_in_game_rule_hint1">1.Interactive games are a new section provided by PDLIVE for users, who can participate in the game section on the homepage or in the live room;</string>
|
<string name="sud_in_game_rule_hint1">1.Interactive games are a new section provided by HOSO for users, who can participate in the game section on the homepage or in the live room;</string>
|
||||||
<string name="sud_in_game_rule_hint2">2.Currently, [Backgammon], [Flying Chess], [Bumper I’m the Strongest], [Monster Match], [Jump], [Friendly Challenge], [Magic Battle], [American 8 Ball] More game types will be provided in the future, so stay tuned;</string>
|
<string name="sud_in_game_rule_hint2">2.Currently, [Backgammon], [Flying Chess], [Bumper I’m the Strongest], [Monster Match], [Jump], [Friendly Challenge], [Magic Battle], [American 8 Ball] More game types will be provided in the future, so stay tuned;</string>
|
||||||
<string name="sud_in_game_rule_hint3">3. Users can customize the game threshold, which must be between 100 to 50000 gold beans , and the amount must be a multiple of 10;</string>
|
<string name="sud_in_game_rule_hint3">3. Users can customize the game threshold, which must be between 100 to 50000 gold beans , and the amount must be a multiple of 10;</string>
|
||||||
<string name="sud_in_game_rule_hint4">4.At the beginning of the game, chips from participating users will be collected. After the game ends, 10% of the chips will be collected as tickets, and all remaining chips will be given to the winning users.In a draw, the corresponding chips will be deducted from the tickets and returned to the users;</string>
|
<string name="sud_in_game_rule_hint4">4.At the beginning of the game, chips from participating users will be collected. After the game ends, 10% of the chips will be collected as tickets, and all remaining chips will be given to the winning users.In a draw, the corresponding chips will be deducted from the tickets and returned to the users;</string>
|
||||||
<string name="sud_in_game_rule_hint5">5. The final interpretation right of the event belongs to PDLIVE.</string>
|
<string name="sud_in_game_rule_hint5">5. The final interpretation right of the event belongs to HOSO.</string>
|
||||||
<string name="room_sill0_100">0-100 coins</string>
|
<string name="room_sill0_100">0-100 coins</string>
|
||||||
<string name="room_sill100_500">100-500 coins</string>
|
<string name="room_sill100_500">100-500 coins</string>
|
||||||
<string name="room_sill500_m">Above 500 coins</string>
|
<string name="room_sill500_m">Above 500 coins</string>
|
||||||
@ -1392,7 +1392,7 @@
|
|||||||
<string name="conversion_quantity_need_of_use">Exchange&Usage Rules:</string>
|
<string name="conversion_quantity_need_of_use">Exchange&Usage Rules:</string>
|
||||||
<string name="conversion_quantity_need_of_use1">1.One star coin can be exchanged for one ticket. You can customize the exchange quantity according to your needs. Once the ticket is exchanged, it cannot be revoked. Please confirm in advance;</string>
|
<string name="conversion_quantity_need_of_use1">1.One star coin can be exchanged for one ticket. You can customize the exchange quantity according to your needs. Once the ticket is exchanged, it cannot be revoked. Please confirm in advance;</string>
|
||||||
<string name="conversion_quantity_need_of_use2">2.One ticket can be used to watch one episode of a short drama. After successful redemption, you can return to the viewing page and use the ticket to continue watching the movie;</string>
|
<string name="conversion_quantity_need_of_use2">2.One ticket can be used to watch one episode of a short drama. After successful redemption, you can return to the viewing page and use the ticket to continue watching the movie;</string>
|
||||||
<string name="conversion_quantity_need_of_use3">3.Ticket prohibit illegal activities such as offline trading and acquisitions, and PDLIVE will crack down severely on various profit-making trading activities.</string>
|
<string name="conversion_quantity_need_of_use3">3.Ticket prohibit illegal activities such as offline trading and acquisitions, and HOSO will crack down severely on various profit-making trading activities.</string>
|
||||||
|
|
||||||
<string name="msg_del_sys01">The items inside have not been claimed yet.Are you sure to delete the message?</string>
|
<string name="msg_del_sys01">The items inside have not been claimed yet.Are you sure to delete the message?</string>
|
||||||
<string name="msg_del_sys02">Are you sure to delete the message?</string>
|
<string name="msg_del_sys02">Are you sure to delete the message?</string>
|
||||||
@ -1410,7 +1410,7 @@
|
|||||||
<string name="rule_of_war_hint3">3.三種戰令都會獎勵積分,可在兌換商城中兌換心 儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數 量限制。</string>
|
<string name="rule_of_war_hint3">3.三種戰令都會獎勵積分,可在兌換商城中兌換心 儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數 量限制。</string>
|
||||||
<string name="rule_of_war_hint4">4.每日任務0點刷新,未完成任務進度不再累計, 每季任務將會在新一季戰令開啟時刷新。</string>
|
<string name="rule_of_war_hint4">4.每日任務0點刷新,未完成任務進度不再累計, 每季任務將會在新一季戰令開啟時刷新。</string>
|
||||||
<string name="rule_of_war_hint5">5.任務達成時需主動領取經驗,未领取經驗將會在 任務刷新時自动领取。</string>
|
<string name="rule_of_war_hint5">5.任務達成時需主動領取經驗,未领取經驗將會在 任務刷新時自动领取。</string>
|
||||||
<string name="rule_of_war_hint6">6.活動最終解釋權歸PDLIVE所有。</string>
|
<string name="rule_of_war_hint6">6.活動最終解釋權歸HOSO所有。</string>
|
||||||
<string name="more_integral">More points</string>
|
<string name="more_integral">More points</string>
|
||||||
<string name="gift_overvalue">Gifts worth over 200%</string>
|
<string name="gift_overvalue">Gifts worth over 200%</string>
|
||||||
<string name="gift_overvalue3">Gifts worth over 300%</string>
|
<string name="gift_overvalue3">Gifts worth over 300%</string>
|
||||||
@ -1479,7 +1479,7 @@
|
|||||||
<string name="dragon_rule1">"1. Dragon's Wealth is a benefit that you provide to the audience of the live room after activating the 【God Guardian】. You can choose to customize the number of golden beans and summon Dragon God to divide the profits among the fans of the live broadcast room (the number of golden beans is not less than 1000), or you can choose not to activate the activity; "</string>
|
<string name="dragon_rule1">"1. Dragon's Wealth is a benefit that you provide to the audience of the live room after activating the 【God Guardian】. You can choose to customize the number of golden beans and summon Dragon God to divide the profits among the fans of the live broadcast room (the number of golden beans is not less than 1000), or you can choose not to activate the activity; "</string>
|
||||||
<string name="dragon_rule2">"2. The consumption of gold beans this time will be included in the guardian contribution value and experience value growth. For every 10 gold beans provided, 1 contribution value will be obtained, which can be used to increase the guardian level; "</string>
|
<string name="dragon_rule2">"2. The consumption of gold beans this time will be included in the guardian contribution value and experience value growth. For every 10 gold beans provided, 1 contribution value will be obtained, which can be used to increase the guardian level; "</string>
|
||||||
<string name="dragon_rule3">"3. Users who follow the anchor and participate in activities will receive the benefits you provide after a five minute countdown; "</string>
|
<string name="dragon_rule3">"3. Users who follow the anchor and participate in activities will receive the benefits you provide after a five minute countdown; "</string>
|
||||||
<string name="dragon_rule4">4. The final interpretation of this activity belongs to PDLIVE.</string>
|
<string name="dragon_rule4">4. The final interpretation of this activity belongs to HOSO.</string>
|
||||||
<string name="dragon_immediate_participation">Participate</string>
|
<string name="dragon_immediate_participation">Participate</string>
|
||||||
<string name="continuative_guardian_privilege">Renew now to extend guardian privileges\n</string>
|
<string name="continuative_guardian_privilege">Renew now to extend guardian privileges\n</string>
|
||||||
<string name="continuative_guardian_privilege2">Now renew and enjoy guardian privileges again\n</string>
|
<string name="continuative_guardian_privilege2">Now renew and enjoy guardian privileges again\n</string>
|
||||||
@ -1499,7 +1499,7 @@
|
|||||||
<string name="current_guard_expires">We are currently unable to activate this guard. Please try again after the current guard expires</string>
|
<string name="current_guard_expires">We are currently unable to activate this guard. Please try again after the current guard expires</string>
|
||||||
<string name="dragon_rule5">1.Dragon\'s Wealth is a free golden bean benefit provided to live stream viewers by users who have activated the 【God Guardian】 feature;</string>
|
<string name="dragon_rule5">1.Dragon\'s Wealth is a free golden bean benefit provided to live stream viewers by users who have activated the 【God Guardian】 feature;</string>
|
||||||
<string name="dragon_rule6">2.Users who follow the anchor and participate in the activity will divide the gold beans of the activity after the countdown of five minutes ends;</string>
|
<string name="dragon_rule6">2.Users who follow the anchor and participate in the activity will divide the gold beans of the activity after the countdown of five minutes ends;</string>
|
||||||
<string name="dragon_rule7">3.The final interpretation of this activity belongs to PDLIVE.</string>
|
<string name="dragon_rule7">3.The final interpretation of this activity belongs to HOSO.</string>
|
||||||
<string name="main_type_theater" >Theater</string>
|
<string name="main_type_theater" >Theater</string>
|
||||||
<string name="pking_over">The anchor is in PK, please try again later</string>
|
<string name="pking_over">The anchor is in PK, please try again later</string>
|
||||||
<string name="prank_complete">once</string>
|
<string name="prank_complete">once</string>
|
||||||
|
@ -4,16 +4,16 @@ ext {
|
|||||||
buildToolsVersion: "29.0.2",
|
buildToolsVersion: "29.0.2",
|
||||||
minSdkVersion : 23,
|
minSdkVersion : 23,
|
||||||
targetSdkVersion : 34,
|
targetSdkVersion : 34,
|
||||||
versionCode : 698,
|
versionCode : 702,
|
||||||
versionName : "6.8.1"
|
versionName : "6.8.2"
|
||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
//正式、
|
//正式、
|
||||||
// serverHost : "https://napi.yaoulive.com",
|
// serverHost : "https://napi.yaoulive.com",
|
||||||
serverHost : "https://napi.yaoulive.com",
|
serverHost : "https://api.hosolive.com",
|
||||||
|
|
||||||
buildTime : new Date().format("MM-dd HH:mm", TimeZone.getTimeZone("GMT+8")),
|
buildTime : new Date().format("MM-dd HH:mm", TimeZone.getTimeZone("GMT+8")),
|
||||||
testServerHost : "https://ceshi.yaoulive.com",
|
testServerHost : "https://api.hosolive.com",
|
||||||
|
|
||||||
//百度语音识别
|
//百度语音识别
|
||||||
|
|
||||||
|
@ -333,7 +333,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
|||||||
private Runnable liveCheck = new Runnable() {
|
private Runnable liveCheck = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
HttpClient.getInstance().get("Live.checkLive", "")
|
HttpClient.getInstance().get("jianchazhibo", "")
|
||||||
.params("liveuid", mLiveBean.getUid())
|
.params("liveuid", mLiveBean.getUid())
|
||||||
.params("stream", mLiveBean.getStream())
|
.params("stream", mLiveBean.getStream())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -972,7 +972,7 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL
|
|||||||
dialog.findViewById(R.id.tv_into).setOnClickListener(new View.OnClickListener() {
|
dialog.findViewById(R.id.tv_into).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=task&a=index&uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&tabIndex=1";
|
String url = CommonAppConfig.HOST + "/h5/task/index.html?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&tabIndex=1";
|
||||||
WebViewActivity.forward(mContext, url, true);
|
WebViewActivity.forward(mContext, url, true);
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
}
|
}
|
||||||
|
@ -232,7 +232,7 @@ public class LiveAnchorActivity extends LiveActivity implements LiveFunctionClic
|
|||||||
mLivePushViewHolder.leave.setVisibility(View.GONE);
|
mLivePushViewHolder.leave.setVisibility(View.GONE);
|
||||||
sendSystemMessage(mContext.getString(R.string.live_anchor_come_back));
|
sendSystemMessage(mContext.getString(R.string.live_anchor_come_back));
|
||||||
}
|
}
|
||||||
HttpClient.getInstance().get("Live.isLeave", "Live.isLeave")
|
HttpClient.getInstance().get("likaizhibo", "likaizhibo")
|
||||||
.params("isleave", leave)
|
.params("isleave", leave)
|
||||||
.execute(new Callback<JsonBean>() {
|
.execute(new Callback<JsonBean>() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -1236,7 +1236,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
manager.micIngTypeTwo(event.getBean(), event.getLiveType(), event.getLiveTypeVal());
|
manager.micIngTypeTwo(event.getBean(), event.getLiveType(), event.getLiveTypeVal());
|
||||||
} else {
|
} else {
|
||||||
//获取房间连麦状态
|
//获取房间连麦状态
|
||||||
HttpClient.getInstance().get("live.getDrLm", "live.getDrLm").params("uid", mLiveUid, true).execute(new HttpCallback() {
|
HttpClient.getInstance().get("huoqulianmaizhuangtai", "huoqulianmaizhuangtai").params("uid", mLiveUid, true).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
@ -1602,7 +1602,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
case "3":
|
case "3":
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
||||||
if (bean.getLink() != null && !"".equals(bean.getLink())) {
|
if (bean.getLink() != null && !"".equals(bean.getLink())) {
|
||||||
WebViewActivity.forward(mContext, bean.getLink(), true);
|
WebViewActivity.forward(mContext, bean.getLink()+"?1=1", true);
|
||||||
} else {
|
} else {
|
||||||
startActivity(new Intent(mContext, SystemMessageActivity.class).putExtra("type", bean.getType()).putExtra("uid", "").putExtra("title", "").putExtra("headImg", ""));
|
startActivity(new Intent(mContext, SystemMessageActivity.class).putExtra("type", bean.getType()).putExtra("uid", "").putExtra("title", "").putExtra("headImg", ""));
|
||||||
|
|
||||||
|
@ -400,7 +400,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
if (isDRPK != 1) {
|
if (isDRPK != 1) {
|
||||||
HttpClient.getInstance().get("live.getdrnum", "live.getdrnum")
|
HttpClient.getInstance().get("huoqushengyupkshu", "huoqushengyupkshu")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -414,7 +414,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
new DialogUitl.SimpleCallback2() {
|
new DialogUitl.SimpleCallback2() {
|
||||||
@Override
|
@Override
|
||||||
public void onConfirmClick(Dialog dialog, String content) {
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
HttpClient.getInstance().get("live.createDRPKroom", "live.createDRPKroom")
|
HttpClient.getInstance().get("chuangjianduorenpk", "chuangjianduorenpk")
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
.params("sign", "1")
|
.params("sign", "1")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -572,7 +572,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
sendSystemMessageRy(mContext.getString(R.string.live_anchor_come_back));
|
sendSystemMessageRy(mContext.getString(R.string.live_anchor_come_back));
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpClient.getInstance().get("Live.isLeave", "Live.isLeave")
|
HttpClient.getInstance().get("likaizhibo", "likaizhibo")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("isleave", leave)
|
.params("isleave", leave)
|
||||||
.params("token", CommonAppConfig.getInstance().getToken())
|
.params("token", CommonAppConfig.getInstance().getToken())
|
||||||
|
@ -410,7 +410,7 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
if (isDRPK != 1) {
|
if (isDRPK != 1) {
|
||||||
HttpClient.getInstance().get("live.getdrnum", "live.getdrnum")
|
HttpClient.getInstance().get("huoqushengyupkshu", "huoqushengyupkshu")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -424,7 +424,7 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
new DialogUitl.SimpleCallback2() {
|
new DialogUitl.SimpleCallback2() {
|
||||||
@Override
|
@Override
|
||||||
public void onConfirmClick(Dialog dialog, String content) {
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
HttpClient.getInstance().get("live.createDRPKroom", "live.createDRPKroom")
|
HttpClient.getInstance().get("chuangjianduorenpk", "chuangjianduorenpk")
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
.params("sign", "1")
|
.params("sign", "1")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -588,7 +588,7 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
mLiveAnchorViewHolder.setLeaveFlag(false);
|
mLiveAnchorViewHolder.setLeaveFlag(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpClient.getInstance().get("Live.isLeave", "Live.isLeave")
|
HttpClient.getInstance().get("likaizhibo", "likaizhibo")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("isleave", leave)
|
.params("isleave", leave)
|
||||||
.params("token", CommonAppConfig.getInstance().getToken())
|
.params("token", CommonAppConfig.getInstance().getToken())
|
||||||
|
@ -307,6 +307,9 @@ public class WebViewActivityMedal extends AbsActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void forward(Context context, String url) {
|
public static void forward(Context context, String url) {
|
||||||
|
if(!url.contains("?")){
|
||||||
|
url+="?t="+System.currentTimeMillis()+"&";
|
||||||
|
}
|
||||||
forward(context, url, true);
|
forward(context, url, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -410,7 +410,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
* 设置贵族状态
|
* 设置贵族状态
|
||||||
*/
|
*/
|
||||||
private void loadUserVip() {
|
private void loadUserVip() {
|
||||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
HttpClient.getInstance().get("huoquyonghujibenxinxiv2", "getBaseInfo")
|
||||||
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
||||||
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -513,7 +513,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
* 设置贵族状态
|
* 设置贵族状态
|
||||||
*/
|
*/
|
||||||
private void loadUserVip() {
|
private void loadUserVip() {
|
||||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
HttpClient.getInstance().get("huoquyonghujibenxinxiv2", "getBaseInfo")
|
||||||
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
||||||
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -172,7 +172,7 @@ public class LiveMicUserDialogFragment extends AbsDialogFragment implements View
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
||||||
HttpClient.getInstance().get("Live.getUserDrLmPower", "Live.getUserDrLmPower")
|
HttpClient.getInstance().get("huoquyonghulianmaizhuangtai", "huoquyonghulianmaizhuangtai")
|
||||||
.params("roomid", LiveActivity.mLiveUid)
|
.params("roomid", LiveActivity.mLiveUid)
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -280,7 +280,7 @@ public class LiveMicUserDialogFragment extends AbsDialogFragment implements View
|
|||||||
public void onConfirmClick(Dialog dialog, String content) {
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
Log.e("ry", "退出112");
|
Log.e("ry", "退出112");
|
||||||
// //退出多人房间
|
// //退出多人房间
|
||||||
HttpClient.getInstance().get("live.leaveDrLm", "live.leaveDrLm")
|
HttpClient.getInstance().get("tuichuduorenlianmai", "tuichuduorenlianmai")
|
||||||
.params("roomid", LiveActivity.mLiveUid)
|
.params("roomid", LiveActivity.mLiveUid)
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -63,8 +63,8 @@ public class LiveTrickeryDialogFragment4Audience extends AbsDialogFragment {
|
|||||||
EventBus.getDefault().register(this);
|
EventBus.getDefault().register(this);
|
||||||
RelativeLayout rlWebview= (RelativeLayout) findViewById(R.id.rlWebview);
|
RelativeLayout rlWebview= (RelativeLayout) findViewById(R.id.rlWebview);
|
||||||
if (mWishWebViewHolder == null) {
|
if (mWishWebViewHolder == null) {
|
||||||
String url= CommonAppConfig.HOST + "/index.php?g=Appapi&m=Turntable&a=prank";
|
String url= CommonAppConfig.HOST + "/h5/Turntable/prank.html?";
|
||||||
url += "&uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
url += "uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
||||||
+ CommonAppConfig.getInstance().getToken() + "&anchor_id="+mLiveUid+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
+ CommonAppConfig.getInstance().getToken() + "&anchor_id="+mLiveUid+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
||||||
Log.i("tag",url);
|
Log.i("tag",url);
|
||||||
mWishWebViewHolder = new WishlistWebViewHolder(mContext, rlWebview, url);
|
mWishWebViewHolder = new WishlistWebViewHolder(mContext, rlWebview, url);
|
||||||
|
@ -151,7 +151,7 @@ public class MenuPopuwWindow implements View.OnClickListener {
|
|||||||
private Runnable setBlackRunnable = new Runnable() {
|
private Runnable setBlackRunnable = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
HttpClient.getInstance().get("User.setBlack", "setBlack")
|
HttpClient.getInstance().get("shezhilaheizhuangtai", "setBlack")
|
||||||
.params("touid", userId);
|
.params("touid", userId);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -9,7 +9,7 @@ public class ImHttpConsts {
|
|||||||
public static final String GET_SYSTEM_MESSAGE_LIST = "getSystemMessageList";
|
public static final String GET_SYSTEM_MESSAGE_LIST = "getSystemMessageList";
|
||||||
public static final String GET_COMMUNITYLIST_LIST = "getCommunityList";
|
public static final String GET_COMMUNITYLIST_LIST = "getCommunityList";
|
||||||
public static final String CHECK_BLACK = "checkBlack";
|
public static final String CHECK_BLACK = "checkBlack";
|
||||||
public static final String SEND_DYNAMICCOMMENT = "sendDynamicComment";
|
public static final String SEND_DYNAMICCOMMENT = "fabudongtaipinglun";
|
||||||
public static final String SET_BLACK = "setBlack";
|
public static final String SET_BLACK = "setBlack";
|
||||||
|
|
||||||
public static final String GET_MESSAGEGIFTINFO = "getMessageGiftInfo";
|
public static final String GET_MESSAGEGIFTINFO = "getMessageGiftInfo";
|
||||||
|
@ -20,7 +20,7 @@ public class ImHttpUtil {
|
|||||||
* 私信聊天页面用于获取用户信息
|
* 私信聊天页面用于获取用户信息
|
||||||
*/
|
*/
|
||||||
public static void getImUserInfo(String uids, HttpCallback callback) {
|
public static void getImUserInfo(String uids, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Message.getLists", ImHttpConsts.GET_IM_USER_INFO)
|
HttpClient.getInstance().get("huoquxitongxiaoxiliebiaov2", ImHttpConsts.GET_IM_USER_INFO)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ public class ImHttpUtil {
|
|||||||
* 互动消息回复
|
* 互动消息回复
|
||||||
*/
|
*/
|
||||||
public static void sendDynamicComment(String dynamic_id, String content, String to_comment_id, HttpCallback callback) {
|
public static void sendDynamicComment(String dynamic_id, String content, String to_comment_id, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Community.sendDynamicComment", ImHttpConsts.SEND_DYNAMICCOMMENT)
|
HttpClient.getInstance().get("fabudongtaipinglun", ImHttpConsts.SEND_DYNAMICCOMMENT)
|
||||||
.params("dynamic_id", dynamic_id)
|
.params("dynamic_id", dynamic_id)
|
||||||
.params("content", content)
|
.params("content", content)
|
||||||
.params("to_comment_id", to_comment_id)
|
.params("to_comment_id", to_comment_id)
|
||||||
@ -39,7 +39,7 @@ public class ImHttpUtil {
|
|||||||
* 获取系统消息列表
|
* 获取系统消息列表
|
||||||
*/
|
*/
|
||||||
public static void getSystemMessageList(String type, int p, HttpCallback callback) {
|
public static void getSystemMessageList(String type, int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Message.getListInfo", ImHttpConsts.GET_SYSTEM_MESSAGE_LIST)
|
HttpClient.getInstance().get("huoquxitongxiaoxixiangqing", ImHttpConsts.GET_SYSTEM_MESSAGE_LIST)
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.params("type", type)
|
.params("type", type)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
@ -49,7 +49,7 @@ public class ImHttpUtil {
|
|||||||
* 猜你喜欢
|
* 猜你喜欢
|
||||||
*/
|
*/
|
||||||
public static void getCommunityList(int p, HttpCallback callback) {
|
public static void getCommunityList(int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Community.guessYouLike", ImHttpConsts.GET_COMMUNITYLIST_LIST)
|
HttpClient.getInstance().get("cainixihuandongtailiebiao", ImHttpConsts.GET_COMMUNITYLIST_LIST)
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ public class ImHttpUtil {
|
|||||||
* 判断自己有没有被对方拉黑,聊天的时候用到
|
* 判断自己有没有被对方拉黑,聊天的时候用到
|
||||||
*/
|
*/
|
||||||
public static void checkBlack(String touid, HttpCallback callback) {
|
public static void checkBlack(String touid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.checkBlack", ImHttpConsts.CHECK_BLACK)
|
HttpClient.getInstance().get("jiancelaheizhuangtai", ImHttpConsts.CHECK_BLACK)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -68,7 +68,7 @@ public class ImHttpUtil {
|
|||||||
* 拉黑对方, 解除拉黑
|
* 拉黑对方, 解除拉黑
|
||||||
*/
|
*/
|
||||||
public static void setBlack(String touid, HttpCallback callback) {
|
public static void setBlack(String touid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.setBlack", ImHttpConsts.SET_BLACK)
|
HttpClient.getInstance().get("shezhilaheizhuangtai", ImHttpConsts.SET_BLACK)
|
||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -78,7 +78,7 @@ public class ImHttpUtil {
|
|||||||
* 获取补偿消息详情
|
* 获取补偿消息详情
|
||||||
*/
|
*/
|
||||||
public static void getMessageGiftInfo(String msgid, HttpCallback callback) {
|
public static void getMessageGiftInfo(String msgid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Message.getMessageGiftInfo", ImHttpConsts.GET_MESSAGEGIFTINFO)
|
HttpClient.getInstance().get("chakanxiaoxilibanxiangqing", ImHttpConsts.GET_MESSAGEGIFTINFO)
|
||||||
.params("message_id", msgid)
|
.params("message_id", msgid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -87,7 +87,7 @@ public class ImHttpUtil {
|
|||||||
* 删除系统消息
|
* 删除系统消息
|
||||||
*/
|
*/
|
||||||
public static void delMsg(String msgid, HttpCallback callback) {
|
public static void delMsg(String msgid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Message.deleteSystemMessage", ImHttpConsts.GET_MESSAGEGIFTINFO)
|
HttpClient.getInstance().get("shanchuxitongxiaoxi", ImHttpConsts.GET_MESSAGEGIFTINFO)
|
||||||
.params("message_id", msgid)
|
.params("message_id", msgid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -96,7 +96,7 @@ public class ImHttpUtil {
|
|||||||
* 已读 系统消息
|
* 已读 系统消息
|
||||||
*/
|
*/
|
||||||
public static void readMsg(String msgid, HttpCallback callback) {
|
public static void readMsg(String msgid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Message.systemMessageRead", ImHttpConsts.GET_MESSAGEGIFTINFO)
|
HttpClient.getInstance().get("xitongxiaoxiyiduzhuangtai", ImHttpConsts.GET_MESSAGEGIFTINFO)
|
||||||
.params("message_id", msgid)
|
.params("message_id", msgid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ public class ImHttpUtil {
|
|||||||
* 领取礼物
|
* 领取礼物
|
||||||
*/
|
*/
|
||||||
public static void receiveGift(String msgid, HttpCallback callback) {
|
public static void receiveGift(String msgid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Message.getMessageGiftDetails", ImHttpConsts.GET_MESSAGEGIFTINFO)
|
HttpClient.getInstance().get("lingquxitongxiaoxilibao", ImHttpConsts.GET_MESSAGEGIFTINFO)
|
||||||
.params("message_id", msgid)
|
.params("message_id", msgid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
@ -114,7 +114,7 @@ public class ImHttpUtil {
|
|||||||
* 处罚通知是否有未读消息
|
* 处罚通知是否有未读消息
|
||||||
*/
|
*/
|
||||||
public static void getPenalizeStatus(HttpCallback callback) {
|
public static void getPenalizeStatus(HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Message.penalizeStatus", "Message.penalizeStatus")
|
HttpClient.getInstance().get("jianchaweiduchufanxiaoxi", "jianchaweiduchufanxiaoxi")
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ public class ImHttpUtil {
|
|||||||
* 处罚通知列表
|
* 处罚通知列表
|
||||||
*/
|
*/
|
||||||
public static void getPenalizeList(int p, HttpCallback callback) {
|
public static void getPenalizeList(int p, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Message.penalizeList", "Message.penalizeList")
|
HttpClient.getInstance().get("chufantongzhiliebiao", "chufantongzhiliebiao")
|
||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ public class LiveLinkMicPkPresenter implements View.OnClickListener {
|
|||||||
mLiveLinkMicPkViewHolder.setTime(s + " " + s1);
|
mLiveLinkMicPkViewHolder.setTime(s + " " + s1);
|
||||||
if (i == 0 && s1.equals("00:01") && mIsAnchor && !s.contains("懲罰")) {
|
if (i == 0 && s1.equals("00:01") && mIsAnchor && !s.contains("懲罰")) {
|
||||||
i = 1;
|
i = 1;
|
||||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK")
|
HttpClient.getInstance().get("jieshupk", "jieshupk")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("addtime", "00:00")
|
.params("addtime", "00:00")
|
||||||
.params("type", "0")
|
.params("type", "0")
|
||||||
@ -272,13 +272,13 @@ public class LiveLinkMicPkPresenter implements View.OnClickListener {
|
|||||||
String pkUid = datas.getString("pkuid");
|
String pkUid = datas.getString("pkuid");
|
||||||
Log.i("seed", seed_msg.mResult.toString());
|
Log.i("seed", seed_msg.mResult.toString());
|
||||||
|
|
||||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().post("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + pkUid)
|
.params("GroupId", "g" + pkUid)
|
||||||
.params("jsonstr", seed_msg.mResult.toString())
|
.params("jsonstr", seed_msg.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().post("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||||
.params("jsonstr", seed_msg.mResult.toString())
|
.params("jsonstr", seed_msg.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -768,7 +768,7 @@ public class LiveLinkMicPkPresenter implements View.OnClickListener {
|
|||||||
//把画面设置成九宫格
|
//把画面设置成九宫格
|
||||||
dr_pk_view.setVisibility(View.VISIBLE);
|
dr_pk_view.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
HttpClient.getInstance().get("xiugaizhiboxinxi", "xiugaizhiboxinxi")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("pkuid", u.getId())
|
.params("pkuid", u.getId())
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
|
@ -546,7 +546,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
|||||||
//获取活动
|
//获取活动
|
||||||
private void getEvent() {
|
private void getEvent() {
|
||||||
if (btn_onecz_event != null) {
|
if (btn_onecz_event != null) {
|
||||||
HttpClient.getInstance().get("Charge2.isFirstChargeIcons", "Charge2.isFirstChargeIcons")
|
HttpClient.getInstance().get("xinbanshifouxianshishouchongtubiao", "xinbanshifouxianshishouchongtubiao")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("token", CommonAppConfig.getInstance().getToken())
|
.params("token", CommonAppConfig.getInstance().getToken())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -397,7 +397,7 @@ public class LiveRyLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
Log.i("tts2", s1);
|
Log.i("tts2", s1);
|
||||||
mLiveLinkMicPkViewHolder.setTime(s + " " + s1);
|
mLiveLinkMicPkViewHolder.setTime(s + " " + s1);
|
||||||
if (s1.equals("00:01") && mIsAnchor && !s.contains("懲罰")) {
|
if (s1.equals("00:01") && mIsAnchor && !s.contains("懲罰")) {
|
||||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK")
|
HttpClient.getInstance().get("jieshupk", "jieshupk")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("addtime", "00:00")
|
.params("addtime", "00:00")
|
||||||
.params("type", "0")
|
.params("type", "0")
|
||||||
@ -420,13 +420,13 @@ public class LiveRyLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
|
|
||||||
Log.e("ry1", datas.getString("win_uid") + "VVVVVV" + datas.getString("pkuid"));
|
Log.e("ry1", datas.getString("win_uid") + "VVVVVV" + datas.getString("pkuid"));
|
||||||
|
|
||||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().post("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + pkUid)
|
.params("GroupId", "g" + pkUid)
|
||||||
.params("jsonstr", seed_msg.mResult.toString())
|
.params("jsonstr", seed_msg.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().post("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||||
.params("jsonstr", seed_msg.mResult.toString())
|
.params("jsonstr", seed_msg.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -940,7 +940,7 @@ public class LiveRyLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDRPkApply(UserBean u) {
|
protected void onDRPkApply(UserBean u) {
|
||||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
HttpClient.getInstance().get("xiugaizhiboxinxi", "xiugaizhiboxinxi")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("pkuid", u.getId())
|
.params("pkuid", u.getId())
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
|
@ -350,7 +350,7 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
Log.i("tts2", s1);
|
Log.i("tts2", s1);
|
||||||
mLiveLinkMicPkViewHolder.setTime(s + " " + s1);
|
mLiveLinkMicPkViewHolder.setTime(s + " " + s1);
|
||||||
if (s1.equals("00:01") && mIsAnchor && !s.contains("懲罰")) {
|
if (s1.equals("00:01") && mIsAnchor && !s.contains("懲罰")) {
|
||||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK").params("uid", CommonAppConfig.getInstance().getUid()).params("addtime", "00:00").params("type", "0").params("sign", "1").execute(new HttpCallback() {
|
HttpClient.getInstance().get("jieshupk", "jieshupk").params("uid", CommonAppConfig.getInstance().getUid()).params("addtime", "00:00").params("type", "0").params("sign", "1").execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
@ -363,10 +363,10 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
|
|
||||||
Log.e("ry1", datas.getString("win_uid") + "VVVVVV" + datas.getString("pkuid"));
|
Log.e("ry1", datas.getString("win_uid") + "VVVVVV" + datas.getString("pkuid"));
|
||||||
|
|
||||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
HttpClient.getInstance().post("fasongxiaoxiv2", "fasongxiaoxiv2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
HttpClient.getInstance().post("fasongxiaoxiv2", "fasongxiaoxiv2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
|
||||||
@ -456,7 +456,7 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
|
|
||||||
|
|
||||||
public void onLinkDRMicPkQuit(String uid) {
|
public void onLinkDRMicPkQuit(String uid) {
|
||||||
HttpClient.getInstance().get("Live.getDRPKroom", "Live.getDRPKroom").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", mApplyUid).execute(new HttpCallback() {
|
HttpClient.getInstance().get("huoquduorenpkfangjian", "huoquduorenpkfangjian").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", mApplyUid).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (info.length > 0) {
|
if (info.length > 0) {
|
||||||
@ -697,12 +697,12 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDRPkApply(UserBean u) {
|
protected void onDRPkApply(UserBean u) {
|
||||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive").params("uid", CommonAppConfig.getInstance().getUid()).params("pkuid", u.getId()).params("type", "1").params("sign", "1").execute(new HttpCallback() {
|
HttpClient.getInstance().get("xiugaizhiboxinxi", "xiugaizhiboxinxi").params("uid", CommonAppConfig.getInstance().getUid()).params("pkuid", u.getId()).params("type", "1").params("sign", "1").execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msgs, String[] info) {
|
public void onSuccess(int code, String msgs, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
Log.i("多人PK", "1code = " + code + ", msgs = " + msgs + ", info = " + Arrays.deepToString(info) + " mApplyUid = " + mApplyUid);
|
Log.i("多人PK", "1code = " + code + ", msgs = " + msgs + ", info = " + Arrays.deepToString(info) + " mApplyUid = " + mApplyUid);
|
||||||
HttpClient.getInstance().get("live.getdrnum", "live.getdrnum").execute(new HttpCallback() {
|
HttpClient.getInstance().get("huoqushengyupkshu", "huoqushengyupkshu").execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
Log.i(TAG, "code = " + code + ", msg = " + msg + ", info = " + Arrays.deepToString(info));
|
Log.i(TAG, "code = " + code + ", msg = " + msg + ", info = " + Arrays.deepToString(info));
|
||||||
@ -715,7 +715,7 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
}
|
}
|
||||||
boolean finalAgree = agree;
|
boolean finalAgree = agree;
|
||||||
if (finalAgree) {
|
if (finalAgree) {
|
||||||
HttpClient.getInstance().get("live.joinDRPKroom", "live.joinDRPKroom").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", u.getId()).execute(new HttpCallback() {
|
HttpClient.getInstance().get("jiaruduorenpkfangjian", "jiaruduorenpkfangjian").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", u.getId()).execute(new HttpCallback() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -738,7 +738,7 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
L.eSw("将自己从多人pk列表里剔除" + new Gson().toJson(drPkbeans));
|
L.eSw("将自己从多人pk列表里剔除" + new Gson().toJson(drPkbeans));
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpClient.getInstance().get("Live.getDRPKroom", "Live.getDRPKroom").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", mApplyUid).execute(new HttpCallback() {
|
HttpClient.getInstance().get("huoquduorenpkfangjian", "huoquduorenpkfangjian").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", mApplyUid).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (info.length > 0) {
|
if (info.length > 0) {
|
||||||
@ -1279,7 +1279,7 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
public void dRjoinOtherRoom(UserBean u) {
|
public void dRjoinOtherRoom(UserBean u) {
|
||||||
L.eSw("dRjoinOtherRoom UserBeanUserBeanUserBeanUserBeanUserBeanUserBeanUserBeanUserBean ");
|
L.eSw("dRjoinOtherRoom UserBeanUserBeanUserBeanUserBeanUserBeanUserBeanUserBeanUserBean ");
|
||||||
setMyDrPkDetailsView();
|
setMyDrPkDetailsView();
|
||||||
HttpClient.getInstance().get("Live.getDRPKroom", "Live.getDRPKroom").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", mApplyUid).execute(new HttpCallback() {
|
HttpClient.getInstance().get("huoquduorenpkfangjian", "huoquduorenpkfangjian").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", mApplyUid).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (info.length > 0) {
|
if (info.length > 0) {
|
||||||
|
@ -796,7 +796,7 @@ public class SocketClient {
|
|||||||
params.topMargin = 0;
|
params.topMargin = 0;
|
||||||
LivePushTxViewHolder.mPreView.setLayoutParams(params);
|
LivePushTxViewHolder.mPreView.setLayoutParams(params);
|
||||||
//断开连麦
|
//断开连麦
|
||||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout")
|
HttpClient.getInstance().post("chaxunshoudongpkcishu", "chaxunshoudongpkcishu")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
@ -43,7 +43,7 @@ public class SocketLinkMicPkUtil {
|
|||||||
*/
|
*/
|
||||||
public static void linkMicPkAccept(SocketClient client, String pkUid, String url, String name) {
|
public static void linkMicPkAccept(SocketClient client, String pkUid, String url, String name) {
|
||||||
Log.i("pksend", "发送的pkurl=" + url + "****发送的pkname=" + name);
|
Log.i("pksend", "发送的pkurl=" + url + "****发送的pkname=" + name);
|
||||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
HttpClient.getInstance().get("xiugaizhiboxinxi", "xiugaizhiboxinxi")
|
||||||
.params("pkuid", pkUid)
|
.params("pkuid", pkUid)
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
.params("sign", "1")
|
.params("sign", "1")
|
||||||
@ -51,7 +51,7 @@ public class SocketLinkMicPkUtil {
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msgs, String[] info) {
|
public void onSuccess(int code, String msgs, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
HttpClient.getInstance().get("Livepk.setPK", "Livepk.setPK")
|
HttpClient.getInstance().get("kaishipk", "kaishipk")
|
||||||
.params("pkuid", pkUid)
|
.params("pkuid", pkUid)
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
.params("sign", "1")
|
.params("sign", "1")
|
||||||
|
@ -457,7 +457,7 @@ public class SocketRyClient {
|
|||||||
} else if (TextUtils.equals(boxType, "2")) {
|
} else if (TextUtils.equals(boxType, "2")) {
|
||||||
boxTypeName = WordUtil.isNewZh() ? "典藏盲盒" : "Collection blind box";
|
boxTypeName = WordUtil.isNewZh() ? "典藏盲盒" : "Collection blind box";
|
||||||
} else {
|
} else {
|
||||||
boxTypeName = WordUtil.isNewZh() ? "PD盲盒" : "PD blind box";
|
boxTypeName = WordUtil.isNewZh() ? "HOSO盲盒" : "HOSO blind box";
|
||||||
}
|
}
|
||||||
AllServerNotifyEvent allServerNotifyEvent
|
AllServerNotifyEvent allServerNotifyEvent
|
||||||
= new AllServerNotifyEvent()
|
= new AllServerNotifyEvent()
|
||||||
@ -838,7 +838,7 @@ public class SocketRyClient {
|
|||||||
stringBuffer.append(sendQuickGiftModel.getUserNicename())
|
stringBuffer.append(sendQuickGiftModel.getUserNicename())
|
||||||
.append(WordUtil.isNewZh() ? " 送出了 " : " sent ")
|
.append(WordUtil.isNewZh() ? " 送出了 " : " sent ")
|
||||||
.append(sendQuickGiftModel.getQuickGiftNumber())
|
.append(sendQuickGiftModel.getQuickGiftNumber())
|
||||||
.append(WordUtil.isNewZh() ? " 個小PD " : " small pandas ");
|
.append(WordUtil.isNewZh() ? " 個小HOSO " : " small pandas ");
|
||||||
systemChatMessage2(stringBuffer.toString());
|
systemChatMessage2(stringBuffer.toString());
|
||||||
Bus.get().post(new QuickGiftingEvent().setHotNum(sendQuickGiftModel.getHotNum()));
|
Bus.get().post(new QuickGiftingEvent().setHotNum(sendQuickGiftModel.getHotNum()));
|
||||||
break;
|
break;
|
||||||
@ -1486,7 +1486,7 @@ public class SocketRyClient {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
//断开连麦
|
//断开连麦
|
||||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout")
|
HttpClient.getInstance().post("chaxunshoudongpkcishu", "chaxunshoudongpkcishu")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
@ -39,7 +39,7 @@ public class SocketRyLinkMicPkUtil {
|
|||||||
* @param pkUid 对方主播的uid
|
* @param pkUid 对方主播的uid
|
||||||
*/
|
*/
|
||||||
public static void linkMicPkAccept(SocketRyClient client, String pkUid, String url, String name) {
|
public static void linkMicPkAccept(SocketRyClient client, String pkUid, String url, String name) {
|
||||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
HttpClient.getInstance().get("xiugaizhiboxinxi", "xiugaizhiboxinxi")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("pkuid", pkUid)
|
.params("pkuid", pkUid)
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
@ -49,7 +49,7 @@ public class SocketRyLinkMicPkUtil {
|
|||||||
public void onSuccess(int code, String msgs, String[] info) {
|
public void onSuccess(int code, String msgs, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
|
|
||||||
HttpClient.getInstance().get("Livepk.setPK", "Livepk.setPK")
|
HttpClient.getInstance().get("kaishipk", "kaishipk")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("pkuid", pkUid)
|
.params("pkuid", pkUid)
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
|
@ -463,7 +463,7 @@ public class SocketSwClient {
|
|||||||
} else if (TextUtils.equals(boxType, "2")) {
|
} else if (TextUtils.equals(boxType, "2")) {
|
||||||
boxTypeName = WordUtil.isNewZh() ? "典藏盲盒" : "Collection blind box";
|
boxTypeName = WordUtil.isNewZh() ? "典藏盲盒" : "Collection blind box";
|
||||||
} else {
|
} else {
|
||||||
boxTypeName = WordUtil.isNewZh() ? "PD盲盒" : "PD blind box";
|
boxTypeName = WordUtil.isNewZh() ? "HOSO盲盒" : "HOSO blind box";
|
||||||
}
|
}
|
||||||
AllServerNotifyEvent allServerNotifyEvent = new AllServerNotifyEvent().setBlindBoxId(map.getString("blind_box_id")).setBoxType(boxType).setBoxTypeName(boxTypeName).setDressName(WordUtil.isNewZh() ? map.getString("dress_name") : TextUtils.isEmpty(map.getString("dress_nameen")) ? map.getString("dress_name") : map.getString("dress_nameen")).setGiftNotification(map.getString("gift_notification")).setGiftName(WordUtil.isNewZh() ? mCt.getString("giftname") : mCt.getString("giftnameen")).setUserNiceName(map.getString("uname")).setGiftIcon(map.getString("gifticon")).setAnchorName(map.getString("ancherName")).setDisplaySrc(map.getString("display_src"));
|
AllServerNotifyEvent allServerNotifyEvent = new AllServerNotifyEvent().setBlindBoxId(map.getString("blind_box_id")).setBoxType(boxType).setBoxTypeName(boxTypeName).setDressName(WordUtil.isNewZh() ? map.getString("dress_name") : TextUtils.isEmpty(map.getString("dress_nameen")) ? map.getString("dress_name") : map.getString("dress_nameen")).setGiftNotification(map.getString("gift_notification")).setGiftName(WordUtil.isNewZh() ? mCt.getString("giftname") : mCt.getString("giftnameen")).setUserNiceName(map.getString("uname")).setGiftIcon(map.getString("gifticon")).setAnchorName(map.getString("ancherName")).setDisplaySrc(map.getString("display_src"));
|
||||||
Log.e("AllServerNotifyEvent", allServerNotifyEvent.toString());
|
Log.e("AllServerNotifyEvent", allServerNotifyEvent.toString());
|
||||||
@ -767,7 +767,7 @@ public class SocketSwClient {
|
|||||||
case "sendQuickGift":
|
case "sendQuickGift":
|
||||||
SendQuickGiftModel sendQuickGiftModel = GsonUtils.fromJson(map.toString(), SendQuickGiftModel.class);
|
SendQuickGiftModel sendQuickGiftModel = GsonUtils.fromJson(map.toString(), SendQuickGiftModel.class);
|
||||||
StringBuffer stringBuffer = new StringBuffer();
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
stringBuffer.append(sendQuickGiftModel.getUserNicename()).append(WordUtil.isNewZh() ? " 送出了 " : " sent ").append(sendQuickGiftModel.getQuickGiftNumber()).append(WordUtil.isNewZh() ? " 個小PD " : " small pandas ");
|
stringBuffer.append(sendQuickGiftModel.getUserNicename()).append(WordUtil.isNewZh() ? " 送出了 " : " sent ").append(sendQuickGiftModel.getQuickGiftNumber()).append(WordUtil.isNewZh() ? " 個小HOSO " : " small pandas ");
|
||||||
systemChatMessage2(stringBuffer.toString());
|
systemChatMessage2(stringBuffer.toString());
|
||||||
Bus.get().post(new QuickGiftingEvent().setHotNum(sendQuickGiftModel.getHotNum()));
|
Bus.get().post(new QuickGiftingEvent().setHotNum(sendQuickGiftModel.getHotNum()));
|
||||||
break;
|
break;
|
||||||
@ -1416,7 +1416,7 @@ public class SocketSwClient {
|
|||||||
// if (rtcRoom != null) {
|
// if (rtcRoom != null) {
|
||||||
Bus.get().post(new LiveAudienceEvent().setType(LiveAudienceEvent.LiveAudienceType.DISCONNEXT_PK_TIME));
|
Bus.get().post(new LiveAudienceEvent().setType(LiveAudienceEvent.LiveAudienceType.DISCONNEXT_PK_TIME));
|
||||||
//断开连麦
|
//断开连麦
|
||||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout").execute(new HttpCallback() {
|
HttpClient.getInstance().post("chaxunshoudongpkcishu", "chaxunshoudongpkcishu").execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ public class SocketSwLinkMicPkUtil {
|
|||||||
* @param pkUid 对方主播的uid
|
* @param pkUid 对方主播的uid
|
||||||
*/
|
*/
|
||||||
public static void linkMicPkAccept(SocketSwClient client, String pkUid, String url, String name) {
|
public static void linkMicPkAccept(SocketSwClient client, String pkUid, String url, String name) {
|
||||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
HttpClient.getInstance().get("xiugaizhiboxinxi", "xiugaizhiboxinxi")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("pkuid", pkUid)
|
.params("pkuid", pkUid)
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
@ -49,7 +49,7 @@ public class SocketSwLinkMicPkUtil {
|
|||||||
public void onSuccess(int code, String msgs, String[] info) {
|
public void onSuccess(int code, String msgs, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
L.eSw("1111111111111111111111111111");
|
L.eSw("1111111111111111111111111111");
|
||||||
HttpClient.getInstance().get("Livepk.setPK", "Livepk.setPK")
|
HttpClient.getInstance().get("kaishipk", "kaishipk")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("pkuid", pkUid)
|
.params("pkuid", pkUid)
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
|
@ -144,7 +144,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
//获取房间连麦状态
|
//获取房间连麦状态
|
||||||
HttpClient.getInstance().get("live.getDrLm", "live.getDrLm")
|
HttpClient.getInstance().get("huoqulianmaizhuangtai", "huoqulianmaizhuangtai")
|
||||||
.params("uid", mLiveUid, true)
|
.params("uid", mLiveUid, true)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
@ -729,8 +729,8 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
* 观众打开主播的整蛊惑单窗口
|
* 观众打开主播的整蛊惑单窗口
|
||||||
*/
|
*/
|
||||||
public void openZGListWindow() {
|
public void openZGListWindow() {
|
||||||
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Turntable&a=tricky";
|
String url = CommonAppConfig.HOST + "/h5/activity/Turntable/index.html?";
|
||||||
url += "&uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
url += "uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
||||||
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid + "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid + "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
||||||
Log.i("tag", url);
|
Log.i("tag", url);
|
||||||
Bundle bundle1 = new Bundle();
|
Bundle bundle1 = new Bundle();
|
||||||
|
@ -29,6 +29,7 @@ import com.lxj.xpopup.core.BasePopupView;
|
|||||||
import com.lxj.xpopup.interfaces.XPopupCallback;
|
import com.lxj.xpopup.interfaces.XPopupCallback;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
|
import com.yunbao.common.activity.WebViewActivity;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
import com.yunbao.common.bean.LiveAnchorCallMeModel;
|
import com.yunbao.common.bean.LiveAnchorCallMeModel;
|
||||||
import com.yunbao.common.bean.LiveAnchorSayModel;
|
import com.yunbao.common.bean.LiveAnchorSayModel;
|
||||||
@ -546,17 +547,13 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl
|
|||||||
IMLoginModel model = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel model = IMLoginManager.get(mContext).getUserInfo();
|
||||||
StringBuffer url = new StringBuffer();
|
StringBuffer url = new StringBuffer();
|
||||||
url.append(CommonAppConfig.HOST);
|
url.append(CommonAppConfig.HOST);
|
||||||
if (TextUtils.equals(ct, "zh")) {
|
url.append("/h5/page/index.html?id=708");
|
||||||
url.append("/index.php?g=portal&m=page&a=index&id=671");
|
|
||||||
} else {
|
|
||||||
url.append("/index.php?g=portal&m=page&a=index&id=672");
|
|
||||||
}
|
|
||||||
url.append("&uid=")
|
url.append("&uid=")
|
||||||
.append(model.getId())
|
.append(model.getId())
|
||||||
.append("&token=")
|
.append("&token=")
|
||||||
.append(model.getToken()).append("&isZh=")
|
.append(model.getToken()).append("&isZh=")
|
||||||
.append(WordUtil.isNewZh() ? "1" : 0);
|
.append(WordUtil.isNewZh() ? "1" : 0);
|
||||||
RouteUtil.forwardLiveZhuangBanActivity(url.toString(), false);
|
WebViewActivity.forward(mContext, url.toString(), false);
|
||||||
} else if (i == R.id.btn_live_anchor_say) {
|
} else if (i == R.id.btn_live_anchor_say) {
|
||||||
openAnchorSayDialog();
|
openAnchorSayDialog();
|
||||||
} else if (i == R.id.btn_live_anchor_call_me) {
|
} else if (i == R.id.btn_live_anchor_call_me) {
|
||||||
|
@ -1276,7 +1276,7 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
|||||||
audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
|
audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
|
||||||
audioManager.setSpeakerphoneOn(true);
|
audioManager.setSpeakerphoneOn(true);
|
||||||
|
|
||||||
HttpClient.getInstance().get("live.joinDrLm", "live.joinDrLm")
|
HttpClient.getInstance().get("jiaruduorenlianmai", "jiaruduorenlianmai")
|
||||||
.params("roomid", LiveActivity.mLiveUid)
|
.params("roomid", LiveActivity.mLiveUid)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -319,7 +319,7 @@ public class LivePlaySwViewHolder extends LiveRoomPlayViewHolder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpClient.getInstance().get("Live.getDRPKroom", "Live.getDRPKroom").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", liveUid).execute(new HttpCallback() {
|
HttpClient.getInstance().get("huoquduorenpkfangjian", "huoquduorenpkfangjian").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", liveUid).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (info.length > 0) {
|
if (info.length > 0) {
|
||||||
@ -404,7 +404,7 @@ public class LivePlaySwViewHolder extends LiveRoomPlayViewHolder {
|
|||||||
*/
|
*/
|
||||||
private void joinLiveMic() {
|
private void joinLiveMic() {
|
||||||
L.eSw("joinLiveMic");
|
L.eSw("joinLiveMic");
|
||||||
HttpClient.getInstance().get("live.joinDrLm", "live.joinDrLm").params("roomid", LiveActivity.mLiveUid).execute(new HttpCallback() {
|
HttpClient.getInstance().get("jiaruduorenlianmai", "jiaruduorenlianmai").params("roomid", LiveActivity.mLiveUid).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
Log.e("ry", code + "热热热");
|
Log.e("ry", code + "热热热");
|
||||||
|
@ -506,7 +506,7 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
aheadOfScheduleEndPK(mPkUid, CommonAppConfig.getInstance().getUserBean().getUserNiceName(), (String) tv_avatarOther_name.getTag());
|
aheadOfScheduleEndPK(mPkUid, CommonAppConfig.getInstance().getUserBean().getUserNiceName(), (String) tv_avatarOther_name.getTag());
|
||||||
//断开连麦
|
//断开连麦
|
||||||
LiveRyAnchorActivity.isDRPK = 0;
|
LiveRyAnchorActivity.isDRPK = 0;
|
||||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout")
|
HttpClient.getInstance().post("chaxunshoudongpkcishu", "chaxunshoudongpkcishu")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -514,7 +514,7 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK")
|
HttpClient.getInstance().get("jieshupk", "jieshupk")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("addtime", "1")
|
.params("addtime", "1")
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
@ -559,14 +559,14 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
.param("uid", CommonAppConfig.getInstance().getUid());
|
.param("uid", CommonAppConfig.getInstance().getUid());
|
||||||
seed_msg.create();
|
seed_msg.create();
|
||||||
Log.i("seed", seed_msg.mResult.toString());
|
Log.i("seed", seed_msg.mResult.toString());
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + pkUid)
|
.params("GroupId", "g" + pkUid)
|
||||||
.params("jsonstr", seed_msg.mResult.toString())
|
.params("jsonstr", seed_msg.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||||
.params("jsonstr", seed_msg.mResult.toString())
|
.params("jsonstr", seed_msg.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -584,13 +584,13 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
seed_msgs.create();
|
seed_msgs.create();
|
||||||
Log.i("seed", seed_msgs.mResult.toString());
|
Log.i("seed", seed_msgs.mResult.toString());
|
||||||
|
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + LiveRyLinkMicPkPresenter.oldmPkUid)
|
.params("GroupId", "g" + LiveRyLinkMicPkPresenter.oldmPkUid)
|
||||||
.params("jsonstr", seed_msgs.mResult.toString())
|
.params("jsonstr", seed_msgs.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||||
.params("jsonstr", seed_msgs.mResult.toString())
|
.params("jsonstr", seed_msgs.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -1045,13 +1045,13 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
seed_msg.create();
|
seed_msg.create();
|
||||||
|
|
||||||
|
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + pkUid)
|
.params("GroupId", "g" + pkUid)
|
||||||
.params("jsonstr", seed_msg.mResult.toString())
|
.params("jsonstr", seed_msg.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().post("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||||
.params("jsonstr", seed_msg.mResult.toString())
|
.params("jsonstr", seed_msg.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -177,13 +177,13 @@ public class LivePushSwViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
aheadOfScheduleEndPK(mPkUid, CommonAppConfig.getInstance().getUserBean().getUserNiceName(), (String) tv_avatarOther_name.getTag());
|
aheadOfScheduleEndPK(mPkUid, CommonAppConfig.getInstance().getUserBean().getUserNiceName(), (String) tv_avatarOther_name.getTag());
|
||||||
//断开连麦
|
//断开连麦
|
||||||
LiveSwAnchorActivity.isDRPK = 0;
|
LiveSwAnchorActivity.isDRPK = 0;
|
||||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout").execute(new HttpCallback() {
|
HttpClient.getInstance().post("chaxunshoudongpkcishu", "chaxunshoudongpkcishu").execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK").params("uid", CommonAppConfig.getInstance().getUid()).params("addtime", "1").params("type", "1").params("sign", "1").execute(new HttpCallback() {
|
HttpClient.getInstance().get("jieshupk", "jieshupk").params("uid", CommonAppConfig.getInstance().getUid()).params("addtime", "1").params("type", "1").params("sign", "1").execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
@ -201,11 +201,11 @@ public class LivePushSwViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
SocketSendBean seed_msg = new SocketSendBean().param("_method_", Constants.SOCKET_LINK_MIC_PK).param("action", 9).param("msgtype", 10).param("win_uid", datas.getString("win_uid")).param("uid", CommonAppConfig.getInstance().getUid());
|
SocketSendBean seed_msg = new SocketSendBean().param("_method_", Constants.SOCKET_LINK_MIC_PK).param("action", 9).param("msgtype", 10).param("win_uid", datas.getString("win_uid")).param("uid", CommonAppConfig.getInstance().getUid());
|
||||||
seed_msg.create();
|
seed_msg.create();
|
||||||
Log.i("seed", seed_msg.mResult.toString());
|
Log.i("seed", seed_msg.mResult.toString());
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
|
||||||
@ -213,10 +213,10 @@ public class LivePushSwViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
seed_msgs.create();
|
seed_msgs.create();
|
||||||
Log.i("seed", seed_msgs.mResult.toString());
|
Log.i("seed", seed_msgs.mResult.toString());
|
||||||
|
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + LiveSwLinkMicPkPresenter.oldmPkUid).params("jsonstr", seed_msgs.mResult.toString()).execute(new HttpCallback() {
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2").params("GroupId", "g" + LiveSwLinkMicPkPresenter.oldmPkUid).params("jsonstr", seed_msgs.mResult.toString()).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msgs.mResult.toString()).execute(new HttpCallback() {
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msgs.mResult.toString()).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
|
||||||
@ -292,7 +292,7 @@ public class LivePushSwViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
swManager.joinChannelEx(CommonAppConfig.getInstance().getUid(), CommonAppConfig.SWToken, u.getId(), SWAuManager.getChannelName(u.getId()));
|
swManager.joinChannelEx(CommonAppConfig.getInstance().getUid(), CommonAppConfig.SWToken, u.getId(), SWAuManager.getChannelName(u.getId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
HttpClient.getInstance().get("xiugaizhiboxinxi", "xiugaizhiboxinxi")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("pkuid", u.getId())
|
.params("pkuid", u.getId())
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
@ -301,7 +301,7 @@ public class LivePushSwViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msgs, String[] info) {
|
public void onSuccess(int code, String msgs, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
HttpClient.getInstance().get("Livepk.setPK", "Livepk.setPK")
|
HttpClient.getInstance().get("kaishipk", "kaishipk")
|
||||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||||
.params("pkuid", u.getId())
|
.params("pkuid", u.getId())
|
||||||
.params("type", "1")
|
.params("type", "1")
|
||||||
@ -600,10 +600,10 @@ public class LivePushSwViewHolder extends AbsRyLivePushViewHolder implements ITX
|
|||||||
SocketSendBean seed_msg = new SocketSendBean().param("_method_", Constants.SOCKET_SYSTEM).param("action", 1).param("ct", ct);
|
SocketSendBean seed_msg = new SocketSendBean().param("_method_", Constants.SOCKET_SYSTEM).param("action", 1).param("ct", ct);
|
||||||
seed_msg.create();
|
seed_msg.create();
|
||||||
|
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
HttpClient.getInstance().post("fasongxiaoxiv2", "fasongxiaoxiv2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ public class LivePushTxViewHolder extends AbsLivePushViewHolder implements ITXLi
|
|||||||
@Override
|
@Override
|
||||||
public void onConfirmClick(Dialog dialog, String content) {
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
//断开连麦
|
//断开连麦
|
||||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout")
|
HttpClient.getInstance().post("chaxunshoudongpkcishu", "chaxunshoudongpkcishu")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -116,7 +116,7 @@ public class LivePushTxViewHolder extends AbsLivePushViewHolder implements ITXLi
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK")
|
HttpClient.getInstance().get("jieshupk", "jieshupk")
|
||||||
.params("addtime", "00:00")
|
.params("addtime", "00:00")
|
||||||
.params("type", "0")
|
.params("type", "0")
|
||||||
.params("sign", "1")
|
.params("sign", "1")
|
||||||
@ -143,14 +143,14 @@ public class LivePushTxViewHolder extends AbsLivePushViewHolder implements ITXLi
|
|||||||
params.topMargin = 0;
|
params.topMargin = 0;
|
||||||
LivePushTxViewHolder.mPreView.setLayoutParams(params);
|
LivePushTxViewHolder.mPreView.setLayoutParams(params);
|
||||||
}
|
}
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + pkUid)
|
.params("GroupId", "g" + pkUid)
|
||||||
.params("jsonstr", seed_msg.mResult.toString())
|
.params("jsonstr", seed_msg.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||||
.params("jsonstr", seed_msg.mResult.toString())
|
.params("jsonstr", seed_msg.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@ -168,13 +168,13 @@ public class LivePushTxViewHolder extends AbsLivePushViewHolder implements ITXLi
|
|||||||
seed_msgs.create();
|
seed_msgs.create();
|
||||||
Log.i("seed", seed_msgs.mResult.toString());
|
Log.i("seed", seed_msgs.mResult.toString());
|
||||||
|
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + LiveLinkMicPkPresenter.oldmPkUid)
|
.params("GroupId", "g" + LiveLinkMicPkPresenter.oldmPkUid)
|
||||||
.params("jsonstr", seed_msgs.mResult.toString())
|
.params("jsonstr", seed_msgs.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
HttpClient.getInstance().get("fasongxiaoxiv2", "fasongxiaoxiv2")
|
||||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||||
.params("jsonstr", seed_msgs.mResult.toString())
|
.params("jsonstr", seed_msgs.mResult.toString())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
|
@ -5523,7 +5523,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
BannerBean bannerBean = new BannerBean();
|
BannerBean bannerBean = new BannerBean();
|
||||||
bannerBean.setWishlistIcon(model.getWishlistIcon()).setWishlistName(model.getWishlistName()).setWishlistNum(model.getWishlistNum()).setWishlistProgress(model.getWishlistProgress()).setmLink(CommonAppConfig.HOST + "/index.php").setType(1);
|
bannerBean.setWishlistIcon(model.getWishlistIcon()).setWishlistName(model.getWishlistName()).setWishlistNum(model.getWishlistNum()).setWishlistProgress(model.getWishlistProgress()).setmLink(CommonAppConfig.HOST + "/h5/wish/index.html").setType(1);
|
||||||
bannerBean.setShow_type("2");
|
bannerBean.setShow_type("2");
|
||||||
mTopBannerList.add(bannerBean);
|
mTopBannerList.add(bannerBean);
|
||||||
LiveChatBean bean = new LiveChatBean();
|
LiveChatBean bean = new LiveChatBean();
|
||||||
@ -6243,7 +6243,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
BannerBean bannerBean = new BannerBean();
|
BannerBean bannerBean = new BannerBean();
|
||||||
bannerBean.setWishlistIcon(wishListProgress.getWishlistIcon()).setWishlistName(wishListProgress.getWishlistName()).setWishlistNum(wishListProgress.getWishlistNum()).setWishlistProgress(wishListProgress.getWishlistProgress()).setmLink(CommonAppConfig.HOST + "/index.php").setType(1);
|
bannerBean.setWishlistIcon(wishListProgress.getWishlistIcon()).setWishlistName(wishListProgress.getWishlistName()).setWishlistNum(wishListProgress.getWishlistNum()).setWishlistProgress(wishListProgress.getWishlistProgress()).setmLink(CommonAppConfig.HOST + "/h5/wish/index.html").setType(1);
|
||||||
bannerBean.setShow_type("2");
|
bannerBean.setShow_type("2");
|
||||||
if (mTopBannerList.size() == 1 || mTopBannerList.size() == 0) {
|
if (mTopBannerList.size() == 1 || mTopBannerList.size() == 0) {
|
||||||
mTopBannerList.add(bannerBean);
|
mTopBannerList.add(bannerBean);
|
||||||
@ -6302,7 +6302,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
String type = "";
|
String type = "";
|
||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
htmlUrl.append(bean.getLink()).append(bean.getLink().contains("?") ? "&uid=" : "?uid=").append(userInfo.getId()).append("&token=").append(userInfo.getToken()).append("&anchorUid=").append(mLiveUid).append("&liveUid=").append(mLiveUid).append("&t=").append(System.currentTimeMillis()).append("&g=Appapi&m=Wish&a=index").append("&isZh=").append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
htmlUrl.append(bean.getLink()).append(bean.getLink().contains("?") ? "&uid=" : "?uid=").append(userInfo.getId()).append("&token=").append(userInfo.getToken()).append("&anchorUid=").append(mLiveUid).append("&liveUid=").append(mLiveUid).append("&t=").append(System.currentTimeMillis()).append("&isZh=").append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
||||||
if (TextUtils.equals(type, "1")) {
|
if (TextUtils.equals(type, "1")) {
|
||||||
ZhuangBanActivity.forward(mContext, htmlUrl.toString(), false, 1);
|
ZhuangBanActivity.forward(mContext, htmlUrl.toString(), false, 1);
|
||||||
} else {
|
} else {
|
||||||
@ -6357,7 +6357,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
String type = "";
|
String type = "";
|
||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
htmlUrl.append(bean.getLink()).append(bean.getLink().contains("?") ? "&uid=" : "?uid=").append(userInfo.getId()).append("&token=").append(userInfo.getToken()).append("&anchorUid=").append(mLiveUid).append("&liveUid=").append(mLiveUid).append("&t=").append(System.currentTimeMillis()).append("&g=Appapi&m=Wish&a=index").append("&isZh=").append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
htmlUrl.append(bean.getLink()).append(bean.getLink().contains("?") ? "&uid=" : "?uid=").append(userInfo.getId()).append("&token=").append(userInfo.getToken()).append("&anchorUid=").append(mLiveUid).append("&liveUid=").append(mLiveUid).append("&t=").append(System.currentTimeMillis()).append("&isZh=").append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
||||||
if (TextUtils.equals(type, "1")) {
|
if (TextUtils.equals(type, "1")) {
|
||||||
ZhuangBanActivity.forward(mContext, htmlUrl.toString(), false, 1);
|
ZhuangBanActivity.forward(mContext, htmlUrl.toString(), false, 1);
|
||||||
} else {
|
} else {
|
||||||
|
@ -160,7 +160,7 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder {
|
|||||||
ToastUtil.show("多人PK次数已用完");
|
ToastUtil.show("多人PK次数已用完");
|
||||||
} else {
|
} else {
|
||||||
//開始多人PK
|
//開始多人PK
|
||||||
HttpClient.getInstance().get("live.startDRPK", "live.startDRPK")
|
HttpClient.getInstance().get("kaishiduorenpk", "kaishiduorenpk")
|
||||||
.params("roomid", CommonAppConfig.getInstance().getUid())
|
.params("roomid", CommonAppConfig.getInstance().getUid())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
@ -182,7 +182,7 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder {
|
|||||||
btn_end_pk.setOnClickListener(new View.OnClickListener() {
|
btn_end_pk.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
HttpClient.getInstance().get("live.endDRpk", "live.endDRpk")
|
HttpClient.getInstance().get("jieshuduorenpkv2", "jieshuduorenpkv2")
|
||||||
.params("roomid", CommonAppConfig.getInstance().getUid())
|
.params("roomid", CommonAppConfig.getInstance().getUid())
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
@ -450,7 +450,7 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder {
|
|||||||
if (model != null && model.getWishlist().size() > 0) {
|
if (model != null && model.getWishlist().size() > 0) {
|
||||||
BannerBean bannerModel = new BannerBean();
|
BannerBean bannerModel = new BannerBean();
|
||||||
bannerModel.setShow_type("2");
|
bannerModel.setShow_type("2");
|
||||||
bannerModel.setLink(CommonAppConfig.HOST + "/index.php");
|
bannerModel.setLink(CommonAppConfig.HOST + "/h5/wish/index.html");
|
||||||
bannerModel.setImageUrl(model.getImg());
|
bannerModel.setImageUrl(model.getImg());
|
||||||
addWishList(bannerModel);
|
addWishList(bannerModel);
|
||||||
|
|
||||||
|
@ -1201,7 +1201,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
if (isSw) {
|
if (isSw) {
|
||||||
if (mLivePlayViewHolder != null) {
|
if (mLivePlayViewHolder != null) {
|
||||||
mLivePlayViewHolder.endLiveMic();
|
mLivePlayViewHolder.endLiveMic();
|
||||||
HttpClient.getInstance().get("live.leaveDrLm", "live.leaveDrLm")
|
HttpClient.getInstance().get("tuichuduorenlianmai", "tuichuduorenlianmai")
|
||||||
.params("roomid", liveID)
|
.params("roomid", liveID)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
@ -1238,7 +1238,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
Log.e("ry", "下麦成功");
|
Log.e("ry", "下麦成功");
|
||||||
// 该用户切换为观众成功,可以以观众身份进行音视频
|
// 该用户切换为观众成功,可以以观众身份进行音视频
|
||||||
//退出多人房间
|
//退出多人房间
|
||||||
HttpClient.getInstance().get("live.leaveDrLm", "live.leaveDrLm")
|
HttpClient.getInstance().get("tuichuduorenlianmai", "tuichuduorenlianmai")
|
||||||
.params("roomid", liveID)
|
.params("roomid", liveID)
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<shape android:shape="rectangle">
|
<shape android:shape="rectangle">
|
||||||
<corners android:radius="30dp" />
|
<corners android:radius="30dp" />
|
||||||
<solid android:color="#ffffff" />
|
<solid android:color="#FAFAFA" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
</selector>
|
</selector>
|
@ -2,7 +2,7 @@
|
|||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item>
|
<item>
|
||||||
<shape android:shape="rectangle">
|
<shape android:shape="rectangle">
|
||||||
<solid android:color="#33FFC621" />
|
<solid android:color="#80f9ff" />
|
||||||
<corners android:topLeftRadius="13dp" android:topRightRadius="13dp" android:bottomLeftRadius="13dp" android:bottomRightRadius="13dp" />
|
<corners android:topLeftRadius="13dp" android:topRightRadius="13dp" android:bottomLeftRadius="13dp" android:bottomRightRadius="13dp" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
|
@ -47,9 +47,8 @@
|
|||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/live_task_banner2"
|
android:id="@+id/live_task_banner2"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="95dp"
|
android:layout_height="100dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:scaleType="fitXY"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/live_task_banner1"
|
app:layout_constraintTop_toBottomOf="@+id/live_task_banner1"
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
android:background="@drawable/background_6cbe53"
|
android:background="@drawable/background_6cbe53"
|
||||||
android:paddingStart="14dp"
|
android:paddingStart="14dp"
|
||||||
android:paddingTop="4dp"
|
android:paddingTop="4dp"
|
||||||
android:paddingEnd="4dp"
|
android:paddingEnd="14dp"
|
||||||
android:paddingBottom="4dp"
|
android:paddingBottom="4dp"
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
android:textSize="10sp"
|
android:textSize="10sp"
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_marginEnd="20dp"
|
android:layout_marginEnd="20dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="來自小PD的獎勵,齊心協力連成目標"
|
android:text="來自小HOSO的獎勵,齊心協力連成目標"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="13sp"
|
android:textSize="13sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
<string name="live_fans_group_info_text3">3. 專屬禮包與主播為 1 對 1 綁定關係,購買專屬 禮包中禮物資源只可送給該主播</string>
|
<string name="live_fans_group_info_text3">3. 專屬禮包與主播為 1 對 1 綁定關係,購買專屬 禮包中禮物資源只可送給該主播</string>
|
||||||
<string name="live_fans_group_info_text4">4. 禮包中禮物資源有效期 30 天,有效期內均可正 常贈送;過期後禮物資源失效不可贈送</string>
|
<string name="live_fans_group_info_text4">4. 禮包中禮物資源有效期 30 天,有效期內均可正 常贈送;過期後禮物資源失效不可贈送</string>
|
||||||
<string name="live_fans_group_info2_text1">1. 當月只可購買一次,購買后禮包实时發放</string>
|
<string name="live_fans_group_info2_text1">1. 當月只可購買一次,購買后禮包实时發放</string>
|
||||||
<string name="live_fans_group_info2_text2">2. 该禮包最終解釋權歸 PD Live 所有</string>
|
<string name="live_fans_group_info2_text2">2. 该禮包最終解釋權歸 HOSO 所有</string>
|
||||||
<string name="live_fans_group_info_title">禮包介紹</string>
|
<string name="live_fans_group_info_title">禮包介紹</string>
|
||||||
<string name="live_fans_group_info2_title">購買規則</string>
|
<string name="live_fans_group_info2_title">購買規則</string>
|
||||||
<string name="live_fans_follow_toast">加入粉絲團,解鎖專屬禮物</string>
|
<string name="live_fans_follow_toast">加入粉絲團,解鎖專屬禮物</string>
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
<string name="live_fans_group_info_text3">3 The exclusive gift package is bound to the anchor in a one-on-one relationship, and purchasing gift resources in the exclusive gift package can only be given to the anchor</string>
|
<string name="live_fans_group_info_text3">3 The exclusive gift package is bound to the anchor in a one-on-one relationship, and purchasing gift resources in the exclusive gift package can only be given to the anchor</string>
|
||||||
<string name="live_fans_group_info_text4">4 The gift resources in the gift package are valid for 30 days and can be given normally during the validity period; Gift resources become invalid and cannot be given after expiration</string>
|
<string name="live_fans_group_info_text4">4 The gift resources in the gift package are valid for 30 days and can be given normally during the validity period; Gift resources become invalid and cannot be given after expiration</string>
|
||||||
<string name="live_fans_group_info2_text1">1 Purchase can only be made once a month, and the gift package will be distributed in real-time after purchase</string>
|
<string name="live_fans_group_info2_text1">1 Purchase can only be made once a month, and the gift package will be distributed in real-time after purchase</string>
|
||||||
<string name="live_fans_group_info2_text2">2. The final interpretation rights of this gift package belong to PD Live</string>
|
<string name="live_fans_group_info2_text2">2. The final interpretation rights of this gift package belong to HOSO</string>
|
||||||
<string name="live_fans_group_info_title">Introduction</string>
|
<string name="live_fans_group_info_title">Introduction</string>
|
||||||
<string name="live_fans_group_info2_title">Rules</string>
|
<string name="live_fans_group_info2_title">Rules</string>
|
||||||
<string name="live_fans_follow_toast">Join the fan group and unlock exclusive gifts</string>
|
<string name="live_fans_follow_toast">Join the fan group and unlock exclusive gifts</string>
|
||||||
|
@ -175,6 +175,7 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".activity.FeedbackEditActivity"
|
android:name=".activity.FeedbackEditActivity"
|
||||||
android:screenOrientation="portrait" />
|
android:screenOrientation="portrait" />
|
||||||
|
<activity android:name="com.yunbao.main.activity.MainMessageActivity" android:screenOrientation="portrait" />
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|