优化店铺信息获取接口
This commit is contained in:
parent
a9c717a418
commit
f1b199b16c
@ -95,11 +95,11 @@ class ShopController extends BaseController {
|
|||||||
if (!shop) {
|
if (!shop) {
|
||||||
throw new ZError(11, '未找到对应的店铺')
|
throw new ZError(11, '未找到对应的店铺')
|
||||||
}
|
}
|
||||||
let user = (await GameUser.findOrCreate({ accountId })).doc
|
await GameUser.findOneAndUpdate(
|
||||||
user.shop = shop.id
|
{ accountId },
|
||||||
user.shops.pushOnce(shop.id)
|
{ shop: shop.id, loginParams: sid.split('_').slice(1) },
|
||||||
user.loginParams = sid.split('|').slice(1)
|
{ upsert: true, new: true },
|
||||||
await user.save()
|
)
|
||||||
rspData.gameCfg = {}
|
rspData.gameCfg = {}
|
||||||
if (!!shop.gameInfo) {
|
if (!!shop.gameInfo) {
|
||||||
let gameInfo = shop.gameInfo
|
let gameInfo = shop.gameInfo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user