Compare commits

..

No commits in common. "dev_改版主分支-升级融云SDK&AGP8" and "master" have entirely different histories.

5 changed files with 9 additions and 29 deletions

View File

@ -2,7 +2,6 @@ package com.yunbao.common.manager;
import android.content.Context; import android.content.Context;
import android.os.Handler; import android.os.Handler;
import android.util.Log;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
@ -40,7 +39,6 @@ public class InstructorRemarkManager extends BaseCacheManager {
* @return * @return
*/ */
public Map<String, String> getInstructorRemark() { public Map<String, String> getInstructorRemark() {
try {
if (null == instructorRemarkMap) { if (null == instructorRemarkMap) {
String string = getString(KEY_INSTRUCTOR_REMARK); String string = getString(KEY_INSTRUCTOR_REMARK);
if (!StringUtil.isEmpty(string)) { if (!StringUtil.isEmpty(string)) {
@ -49,10 +47,6 @@ public class InstructorRemarkManager extends BaseCacheManager {
}); });
} }
} }
}catch (Exception e){
Log.i("remark", "getInstructorRemark: "+getString(KEY_INSTRUCTOR_REMARK));
e.printStackTrace();
}
if (instructorRemarkMap == null) { if (instructorRemarkMap == null) {
instructorRemarkMap = new HashMap<>(); instructorRemarkMap = new HashMap<>();
} }

View File

@ -251,9 +251,7 @@ public class LogUtil {
body.put("appVersion", CommonAppConfig.getInstance().getVersion()); body.put("appVersion", CommonAppConfig.getInstance().getVersion());
OkHttpClient client = new OkHttpClient.Builder().connectTimeout(3, TimeUnit.SECONDS).build(); OkHttpClient client = new OkHttpClient.Builder().connectTimeout(3, TimeUnit.SECONDS).build();
Request request = new Request.Builder() Request request = new Request.Builder().url("https://newht.yaoulive.com/index.php/api/error_log/report") //无法接受文件
.url("https://tools.yutou233.cn/public/file/request.do")//临时上报地址可接受文件
//.url("https://newht.yaoulive.com/index.php/api/error_log/report") //无法接受文件
.post(requestBody).build(); .post(requestBody).build();
client.newCall(request).enqueue(new Callback() { client.newCall(request).enqueue(new Callback() {
@Override @Override

View File

@ -4,8 +4,8 @@ ext {
buildToolsVersion: "29.0.2", buildToolsVersion: "29.0.2",
minSdkVersion : 23, minSdkVersion : 23,
targetSdkVersion : 33, targetSdkVersion : 33,
versionCode : 523, versionCode : 516,
versionName : "6.6.7", versionName : "6.6.6",
namespace : "com.pandoralive.shayu" namespace : "com.pandoralive.shayu"
] ]
manifestPlaceholders = [ manifestPlaceholders = [

View File

@ -51,7 +51,6 @@ import com.yunbao.common.bean.LiveBean;
import com.yunbao.common.bean.NewLevelModel; import com.yunbao.common.bean.NewLevelModel;
import com.yunbao.common.bean.UserHomeImgBean; import com.yunbao.common.bean.UserHomeImgBean;
import com.yunbao.common.dialog.ImagePreviewDialog; import com.yunbao.common.dialog.ImagePreviewDialog;
import com.yunbao.common.event.LiveRoomChangeEvent;
import com.yunbao.common.glide.ImgLoader; import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.http.CommonHttpUtil; import com.yunbao.common.http.CommonHttpUtil;
import com.yunbao.common.http.LiveHttpUtil; import com.yunbao.common.http.LiveHttpUtil;
@ -62,7 +61,6 @@ import com.yunbao.common.manager.NewLevelManager;
import com.yunbao.common.upload.UploadBean; import com.yunbao.common.upload.UploadBean;
import com.yunbao.common.upload.UploadCallback; import com.yunbao.common.upload.UploadCallback;
import com.yunbao.common.upload.UploadQnImpl; import com.yunbao.common.upload.UploadQnImpl;
import com.yunbao.common.utils.AppManager;
import com.yunbao.common.utils.DialogUitl; import com.yunbao.common.utils.DialogUitl;
import com.yunbao.common.utils.FilesUtils; import com.yunbao.common.utils.FilesUtils;
import com.yunbao.common.utils.L; import com.yunbao.common.utils.L;
@ -629,15 +627,7 @@ public class UserHomeActivity extends AbsActivity {
new LiveRoomCheckLivePresenter(mContext, liveBean.getUid(), liveBean.getStream(), new LiveRoomCheckLivePresenter.NewActionListener() { new LiveRoomCheckLivePresenter(mContext, liveBean.getUid(), liveBean.getStream(), new LiveRoomCheckLivePresenter.NewActionListener() {
@Override @Override
public void onLiveRoomChanged(String liveUid, String stream, int liveType, String liveTypeVal, String liveSdk) { public void onLiveRoomChanged(String liveUid, String stream, int liveType, String liveTypeVal, String liveSdk) {
if (StringUtil.isEmpty(liveUid)) { RouteUtil.forwardLiveAudienceActivity(liveBean, liveType, Integer.parseInt(liveSdk), Integer.parseInt(liveTypeVal));
return;
}
finish();
if (AppManager.getInstance().getLiveActivity() != null) {
EventBus.getDefault().post(new LiveRoomChangeEvent(liveBean, liveType, Integer.parseInt(liveTypeVal)).setLiveEnd(true));
} else {
RouteUtil.forwardLiveAudienceActivity(liveBean, liveType, Integer.parseInt(liveTypeVal), Integer.parseInt(liveSdk));
}
} }
@Override @Override

View File

@ -31,7 +31,6 @@ import com.yunbao.common.dialog.AbsDialogFragment;
import com.yunbao.common.http.HttpCallback; import com.yunbao.common.http.HttpCallback;
import com.yunbao.common.http.LiveHttpUtil; import com.yunbao.common.http.LiveHttpUtil;
import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.manager.IMLoginManager;
import com.yunbao.common.utils.AppManager;
import com.yunbao.common.utils.DialogUitl; import com.yunbao.common.utils.DialogUitl;
import com.yunbao.common.utils.PluginManager; import com.yunbao.common.utils.PluginManager;
import com.yunbao.common.utils.ProcessResultUtil; import com.yunbao.common.utils.ProcessResultUtil;
@ -306,7 +305,6 @@ public class MainStartDialogFragment extends AbsDialogFragment implements View.O
if (isWifiProxy(mContext) || checkVPN((ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE))) { if (isWifiProxy(mContext) || checkVPN((ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE))) {
ToastUtil.show(WordUtil.isNewZh()?"檢測開啓了VPN或者代理請先關閉VPN或者代理再開播。": ToastUtil.show(WordUtil.isNewZh()?"檢測開啓了VPN或者代理請先關閉VPN或者代理再開播。":
"It is detected that VPN or proxy is turned on. Please turn off VPN or proxy before starting the broadcast."); "It is detected that VPN or proxy is turned on. Please turn off VPN or proxy before starting the broadcast.");
AppManager.runDebugCode(() -> mCallback.onLiveClick());
} else { } else {
if (mCallback != null) { if (mCallback != null) {
MobclickAgent.onEvent(mContext, "home_page_broadcast", "点击开播按钮"); MobclickAgent.onEvent(mContext, "home_page_broadcast", "点击开播按钮");