This commit is contained in:
suyl
2021-07-15 14:32:03 +08:00
parent aad04d5043
commit 91b95bb2cc

View File

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