|
@@ -260,3 +260,19 @@ func BindUserOutboundMobile(mobile, countryCode string, userId int) (err error)
|
|
_, err = o.Raw(sql, mobile, countryCode, countryCode, userId).Exec()
|
|
_, err = o.Raw(sql, mobile, countryCode, countryCode, userId).Exec()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+func BindUserOutboundMobileByMobile(mobile, countryCode string, userId int) (err error) {
|
|
|
|
+ o := orm.NewOrm()
|
|
|
|
+ sql := `UPDATE wx_user SET outbound_mobile=? ,outbound_country_code = ? WHERE user_id=? `
|
|
|
|
+ _, err = o.Raw(sql, mobile, countryCode, userId).Exec()
|
|
|
|
+ return
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+func ChangeUserOutboundMobileByMobile(userId int) (err error) {
|
|
|
|
+ o := orm.NewOrm()
|
|
|
|
+ sql := `UPDATE wx_user SET country_code = 86 WHERE user_id=? `
|
|
|
|
+ _, err = o.Raw(sql, userId).Exec()
|
|
|
|
+ return
|
|
|
|
+}
|