Commit 573f1188 authored by mengcuiguang's avatar mengcuiguang

去除网络加密sdk

parent c7281248
......@@ -73,7 +73,7 @@ public class MintsApplication extends MultiDexApplication {
// 9.0之后不可多进程使用一个目录下的WebView,写在SDK初始化之前
androidPWebView();
MintsSign.INSTANCE.init(this);
// MintsSign.INSTANCE.init(this);
}
private void androidPWebView() {
......
package com.duben.dayplaylet.manager
import android.app.Application
import com.goodc.c.CoolTools
//import com.goodc.c.CoolTools
/**
* 加密
*/
object MintsSign {
fun init(app: Application) {
CoolTools.method03(app)
// CoolTools.method03(app)
}
fun check(channel: String, time: Long, sign: String) = CoolTools.method04(channel, time.toString(), sign)
// fun check(channel: String, time: Long, sign: String) = CoolTools.method04(channel, time.toString(), sign)
}
\ No newline at end of file
......@@ -142,8 +142,8 @@ public class OkHttpInterceptor implements Interceptor {
String requestSign = tokenID + ":" + channelName + ":" + time;
String sign = MD5.GetMD5Code(requestSign);
// 验证
// String check = MD5.GetMD5Code(requestSign + ":" + checkStr);
String check = MintsSign.INSTANCE.check(channelName, time, checkStr);
String check = MD5.GetMD5Code(requestSign + ":" + checkStr);
// String check = MintsSign.INSTANCE.check(channelName, time, checkStr);
AppRequest appRequest = new AppRequest();
appRequest.setChannel(channelName);
appRequest.setSign(sign);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment