|
@@ -32,6 +32,7 @@ func AddUser4Lose(openid, unionid, bindweixin, userphoto string) (err error) {
|
|
data["i_type"] = 3 //微信openid类型
|
|
data["i_type"] = 3 //微信openid类型
|
|
data["l_registedate"] = time.Now().Unix()
|
|
data["l_registedate"] = time.Now().Unix()
|
|
data["s_unionid"] = unionid
|
|
data["s_unionid"] = unionid
|
|
|
|
+ data["s_unique"] = "qmxwx_" + unionid
|
|
data["s_avatar"] = userphoto
|
|
data["s_avatar"] = userphoto
|
|
//判断绑定微信字段的信息
|
|
//判断绑定微信字段的信息
|
|
if len(bindweixin) == 0 {
|
|
if len(bindweixin) == 0 {
|
|
@@ -66,6 +67,7 @@ func AddUser(openid, unionid, bindweixin, userphoto string, province string, cit
|
|
data["i_type"] = 3 //微信openid类型
|
|
data["i_type"] = 3 //微信openid类型
|
|
data["l_registedate"] = time.Now().Unix()
|
|
data["l_registedate"] = time.Now().Unix()
|
|
data["s_unionid"] = unionid
|
|
data["s_unionid"] = unionid
|
|
|
|
+ data["s_unique"] = "qmxwx_" + unionid
|
|
data["s_avatar"] = userphoto
|
|
data["s_avatar"] = userphoto
|
|
data["s_province"] = province
|
|
data["s_province"] = province
|
|
data["s_city"] = city
|
|
data["s_city"] = city
|