修改测试链接数据库,测试
This commit is contained in:
@@ -418,7 +418,8 @@ dadaSourceID = "73753"
|
|||||||
weixinAppID = "wxbf235770edaabc5c"
|
weixinAppID = "wxbf235770edaabc5c"
|
||||||
weixinSecret = "ba32b269a068a5b72486a0beafd171e8"
|
weixinSecret = "ba32b269a068a5b72486a0beafd171e8"
|
||||||
|
|
||||||
dbConnectStr = "root:WebServer@1@tcp(127.0.0.1:3306)/jxd_dev_0?charset=utf8mb4&loc=Local&parseTime=true"
|
#dbConnectStr = "root:WebServer@1@tcp(127.0.0.1:3306)/jxd_dev_0?charset=utf8mb4&loc=Local&parseTime=true" #本地测试
|
||||||
|
dbConnectStr = "root:WebServer@1@tcp(db1.int.jxc4.com:3306)/jxd_dev_0?charset=utf8mb4&loc=Local&parseTime=true" #正式服
|
||||||
|
|
||||||
[alpha]
|
[alpha]
|
||||||
httpport = 8088
|
httpport = 8088
|
||||||
@@ -525,7 +526,8 @@ getWeixin2TokenURL = "http://www.jxc4.com/v2/sys/GetWX2Token"
|
|||||||
getWeimobTokenURL = "http://www.jxc4.com/v2/sys/GetWeimobToken"
|
getWeimobTokenURL = "http://www.jxc4.com/v2/sys/GetWeimobToken"
|
||||||
getPushTokenURL = "http://www.jxc4.com/v2/sys/GetPushToken"
|
getPushTokenURL = "http://www.jxc4.com/v2/sys/GetPushToken"
|
||||||
|
|
||||||
dbConnectStr = "root:WebServer@1@tcp(127.0.0.1:3306)/jxd_dev_0?charset=utf8mb4&loc=Local&parseTime=true"
|
#dbConnectStr = "root:WebServer@1@tcp(127.0.0.1:3306)/jxd_dev_0?charset=utf8mb4&loc=Local&parseTime=true" #测试服
|
||||||
|
dbConnectStr = "root:WebServer@1@tcp(db1.int.jxc4.com:3306)/jxd_dev_0?charset=utf8mb4&loc=Local&parseTime=true" #正式服
|
||||||
|
|
||||||
yinbaoAppKey = "682628966212343269"
|
yinbaoAppKey = "682628966212343269"
|
||||||
yinbaoAppID = "18C0E0867E467DBC26EFF5E957B02EC4"
|
yinbaoAppID = "18C0E0867E467DBC26EFF5E957B02EC4"
|
||||||
|
|||||||
@@ -324,6 +324,9 @@ func (c *Auth2Controller) AddAuthBind() {
|
|||||||
func (c *Auth2Controller) AddAuthBindWithMobile() {
|
func (c *Auth2Controller) AddAuthBindWithMobile() {
|
||||||
c.callAddAuthBindWithMobile(func(params *tAuth2AddAuthBindWithMobileParams) (retVal interface{}, errCode string, err error) {
|
c.callAddAuthBindWithMobile(func(params *tAuth2AddAuthBindWithMobileParams) (retVal interface{}, errCode string, err error) {
|
||||||
newAuthInfo, err := auth2.GetTokenInfo(params.AuthToken)
|
newAuthInfo, err := auth2.GetTokenInfo(params.AuthToken)
|
||||||
|
if err != nil {
|
||||||
|
return retVal, "", err
|
||||||
|
}
|
||||||
err = auth2.AddAuthBindWithMobile(newAuthInfo, params.Mobile)
|
err = auth2.AddAuthBindWithMobile(newAuthInfo, params.Mobile)
|
||||||
return retVal, "", err
|
return retVal, "", err
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user