Commit 83afd0c6 authored by wildfirecode's avatar wildfirecode

1

parent b6598fa8
...@@ -199,6 +199,21 @@ export class NetManager extends ABNetManager { ...@@ -199,6 +199,21 @@ export class NetManager extends ABNetManager {
this.send(net); this.send(net);
} }
public getProjectUserInfo(callback: Function): void {
const param: any = {
};
const net: INetData = {
name: 'getProjectUserInfo',
uri: '/ctool/getProjectUserInfo?_='+ new Date().getTime(),
type: 'get',
dataType: 'json',
param: param,
callback: callback
};
this.send(net);
}
/** /**
* *
* @param shareCode * @param shareCode
......
const path = require('path'); const path = require('path');
const config = { const config = {
'/ctool/getProjectUserInfo': {
data: './getProjectUserInfo.json'
},
'/activityCommon/getRole': { '/activityCommon/getRole': {
data: './json/getRole.json' data: './json/getRole.json'
}, },
......
{
"success": true,
"code": null,
"desc": null,
"timestamp": 1575276290637,
"data": {
"domain": "//activity.m.duibadev.com.cn",
"credits": "999",
"unitName": "金币",
"consumerId": 500409031,
"partnerUserId": "208812345678929",
"consumerCredits": 9990,
"loginJs": "<script>window.requirelogin=function(){\nvar ua = navigator.userAgent.toLowerCase();\nif(ua.match(/iphone/ig) || ua.match(/ipad/ig)){\ndocument.location='objc://duiba/login';\n}\nelse if(ua.match(/android/ig)){\ntry{\nduiba_app.login();\n}catch(e){}\n}\n}</script>"
}
}
\ No newline at end of file
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