请问只注册了一次,然后页面log显示一直调用register方法,是为什么呢?

yushiershi
2019-09-29 11:37 277 0

--->- event:register, data:{"username":"1177569168585658369","nickname":"lisa","password":"5f4dcc3b5aa765d61d8327deb882cf99","gender":2,"rid":1940095088}
jmessage-wxapplet-sdk-1.4.2.min.js:1 ---<- event:ack, data:{"rid":0,"event":"register"}
jmessage-wxapplet-sdk-1.4.2.min.js:1 ---<- event:register, data:{"rid":1940095088,"code":882002,"event":"register","message":"user exit or not exits or password err or uid err or gid err or appkey err"}
jmessage-wxapplet-sdk-1.4.2.min.js:1 --->- event:register, data:{"username":"1177569168585658369","nickname":"lisa","password":"5f4dcc3b5aa765d61d8327deb882cf99","gender":2,"rid":1940095088}
jmessage-wxapplet-sdk-1.4.2.min.js:1 ---<- event:ack, data:{"rid":0,"event":"register"}
jmessage-wxapplet-sdk-1.4.2.min.js:1 ---<- event:register, data:{"rid":1940095088,"code":882002,"event":"register","message":"user exit or not exits or password err or uid err or gid err or appkey err"}
这个用户已经存在的,但是因为没有判断用户是否存在的方法,所以我每次打开都会注册一次

1个回答

热门排序
  • yushiershi
    2019-09-29 12:08

    并且可能是因为一直在调用注册方法,我登录以后接受不到漫游消息,把注册的地方注释掉就好了
    或者给个判断是否已注册方法也好啊