aa
This commit is contained in:
@@ -507,13 +507,13 @@ func GetMyStoreListNew(ctx *jxcontext.Context, version string) (storesInfo inter
|
||||
if !auth2.IsV2Token(ctx.GetToken()) {
|
||||
return nil, model.ErrCodeTokenIsInvalid, model.ErrTokenIsInvalid
|
||||
}
|
||||
//if ctx.GetLoginType() == weixin.AuthTypeWxApp {
|
||||
// if configs, _ := dao.QueryConfigs(dao.GetDB(), "checkversion", model.ConfigTypeSys, ""); len(configs) > 0 {
|
||||
// if version == "" || configs[0].Value != version {
|
||||
// return nil, "", fmt.Errorf("当前APP版本过旧,数据显示有错误,请到'京西菜市'公众号下载最新版本APP!")
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
if ctx.GetLoginType() == weixin.AuthTypeWxApp {
|
||||
if configs, _ := dao.QueryConfigs(dao.GetDB(), "checkversion", model.ConfigTypeSys, ""); len(configs) > 0 {
|
||||
if version == "" || configs[0].Value != version {
|
||||
return nil, "", fmt.Errorf("当前APP版本过旧,数据显示有错误,请到'京西菜市'公众号下载最新版本APP!")
|
||||
}
|
||||
}
|
||||
}
|
||||
mobile, userID := ctx.GetMobileAndUserID()
|
||||
if mobile == "" {
|
||||
return nil, "", fmt.Errorf("不能得到用户手机号")
|
||||
|
||||
Reference in New Issue
Block a user