wuwangdong 4 yıl önce
ebeveyn
işleme
5d4f93bc36

+ 5 - 2
assets/script/game/data/LoginData.ts

@@ -46,6 +46,7 @@ export class LoginData {
     public passPrivacy = false;
     
     public userChannel = 1;
+    public isMatched = 1;
 
     /**
      * 初始化本地配置
@@ -336,7 +337,7 @@ export class LoginData {
 
     public async getUserChannel(isDoIdentify = true) {
         let data = {};
-        let response = await mk.http.sendData('user/getUserChannel', data);
+        let response = await mk.http.sendData('user/income-strategy', data);
         mk.console.logSingle('getUserChannel=>', response);
         if (response.errcode != 0) {
             if(isDoIdentify)
@@ -346,8 +347,10 @@ export class LoginData {
             return;
         }
 
-        this.userChannel = response.data.channel;
+        this.userChannel = response.data.tfChannel;
+        this.isMatched = response.data.isMatched;
         console.log(`userChannel=========${this.userChannel}`);
+        console.log(`isMatched=========${this.isMatched}`);
         mk.data.setTAEventUser(0, 'kncdsf_zhubao_juliangwpp', this.userChannel);
         if(isDoIdentify)
         {

+ 1 - 1
assets/script/game/module/login/Login.ts

@@ -149,7 +149,7 @@ export default class Login extends cc.Component {
                     //     this.node_btnLogin.active = true;
                     // }
 
-                    if (!CC_DEBUG) {
+                    if (CC_DEBUG) {
                         //检查用户来源渠道
                         if (!this.hasCheckChannel) {
                             this.hasCheckChannel = true;