Commit 08a983f5 authored by zhangjinzhou's avatar zhangjinzhou

调整口令233

parent f854dc7e
...@@ -2591,7 +2591,7 @@ export class NetManager extends ABNetManager { ...@@ -2591,7 +2591,7 @@ export class NetManager extends ABNetManager {
public getShareContent(callback,activityCode,sceneCode,token){ public getShareContent(callback,activityCode,sceneCode,token){
const net: INetData = { const net: INetData = {
name: "generateCode", name: "generateCode",
uri: "https://gameact.suning.com/sngame-web/share/api/gateway/getShareContentByToken.do?activityCode="+activityCode+"&sceneCode="+sceneCode+"&token="+token, uri: "https://gameapi.suning.com/sngame-web/share/api/public/getShareContentByToken.do?activityCode="+activityCode+"&sceneCode="+sceneCode+"&token="+token,
type: 'get', type: 'get',
dataType: 'json', dataType: 'json',
hideMsg: true, hideMsg: true,
......
...@@ -320,25 +320,25 @@ function generateCode(callback: Function, channel: CodeChannels, shareCode: stri ...@@ -320,25 +320,25 @@ function generateCode(callback: Function, channel: CodeChannels, shareCode: stri
token token
} }
console.log("新请求233567456"); console.log("新请求233567456");
// NetManager.ins.getShareContent(callback,activityCode,sceneCode,token); NetManager.ins.getShareContent(callback,activityCode,sceneCode,token);
window['$'].ajax({ // window['$'].ajax({
type: "post", // type: "post",
url: "https://gameapi.suning.com/sngame-web/api/getShareGameInfo.do", // url: "https://gameapi.suning.com/sngame-web/api/getShareGameInfo.do",
dataType: "json", // dataType: "json",
data: { // data: {
activityCode, // activityCode,
sceneCode, // sceneCode,
token // token
}, // },
async: true, // async: true,
success: (result) => { // success: (result) => {
callback(true, result) // callback(true, result)
}, // },
error: (message) => { // error: (message) => {
callback(false, message) // callback(false, message)
} // }
}); // });
} }
......
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