test
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/weixinapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/auth2"
|
||||
@@ -308,6 +310,7 @@ func (c *User2Controller) GetUserByMiniInfo() {
|
||||
if err = err2; err == nil {
|
||||
var userInfo *weixinapi.MiniUserInfo
|
||||
if err = utils.UnmarshalUseNumber([]byte(decryptedDataBase64), &userInfo); err == nil {
|
||||
fmt.Println("1111", utils.Format4Output(userInfo, false))
|
||||
var result *UserInfoWithWeixin
|
||||
if err = utils.UnmarshalUseNumber(utils.MustMarshal(userInfo), &result); err == nil {
|
||||
if userInfo.PhoneNumber != "" {
|
||||
@@ -317,6 +320,7 @@ func (c *User2Controller) GetUserByMiniInfo() {
|
||||
} else {
|
||||
result.IsExist = false
|
||||
}
|
||||
fmt.Println("22222", utils.Format4Output(result, false))
|
||||
retVal = result
|
||||
}
|
||||
}
|
||||
@@ -324,6 +328,7 @@ func (c *User2Controller) GetUserByMiniInfo() {
|
||||
}
|
||||
}
|
||||
}
|
||||
fmt.Println("33333", utils.Format4Output(retVal, false))
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user