...
|
...
|
@@ -6,8 +6,8 @@ import iconfSwitch from '../../../libs/switch'; |
|
|
import md5 from '../../../vendors/md5';
|
|
|
|
|
|
//注:g_sourceApiArry与g_toJavaApiArry的length要相等,且一一对应
|
|
|
const g_sourceApiArry = [ '/list', '/content', '/list/recommend', '/code/recent', '/list/mine', '/code/gain', '/code/mine' ];
|
|
|
const g_toJavaApiArry = [ 'app.yoluck.activityList', 'app.yoluck.getContent', 'app.yoluck.recommendList', 'app.yoluck.recent', 'app.yoluck.participationList', 'app.yoluck.getCode', 'app.yoluck.userCode' ];
|
|
|
const g_sourceApiArry = [ '/list', '/content', '/list/recommend', '/code/recent', '/list/mine', '/code/gain', '/code/mine','/yohood/content' ];
|
|
|
const g_toJavaApiArry = [ 'app.yoluck.activityList', 'app.yoluck.getContent', 'app.yoluck.recommendList', 'app.yoluck.recent', 'app.yoluck.participationList', 'app.yoluck.getCode', 'app.yoluck.userCode','app.yohood.getContent' ];
|
|
|
|
|
|
|
|
|
const app = getApp();
|
...
|
...
|
@@ -32,7 +32,7 @@ class Service { |
|
|
|
|
|
//适配服务器更换Java接口,开关控制是否切换
|
|
|
if (app.globalData.switch_javaApiEnable && pathIndex >= 0) {
|
|
|
if (result.data.list) {
|
|
|
if (result.data&& result.data.list) {
|
|
|
let newList = Humps.decamelizeKeys(Object.values(result.data.list));
|
|
|
result.data.list = newList;
|
|
|
} else {
|
...
|
...
|
|