Commit a5924f93 by 李伟康

```

feat(boutique): 更新商户信息获取逻辑

将 CreateOrder 和 DefeatOrder 组件中获取商户信息的方式进行调整,
从 userInfo.subLoginUser 中提取 shopMerchantId 和 shopMerchantName,
并将其用于调用 getMerchantRecordingSettings 接口,以确保数据准确性。
```
1 parent fc1f87bf
......@@ -728,11 +728,11 @@ export default {
if (YQorderSetting) return resolve(YQorderSetting)
else {
const { userInfo } = this
let { merchantId, merchantName } = userInfo.subLoginUser
let { shopMerchantId, merchantId, shopMerchantName } = userInfo
const data = await uni.$api.boutiqueApi.getMerchantRecordingSettings({
scene: 1,
merchantId,
merchantName
merchantId: shopMerchantId,
merchantName: shopMerchantName
})
if (data) {
let YQorderSetting = {}
......
......@@ -706,8 +706,13 @@ export default {
if (YQorderSetting) return resolve(YQorderSetting)
else {
const { userInfo } = this
let { merchantId, merchantName } = userInfo.subLoginUser
const data = await uni.$api.boutiqueApi.getMerchantRecordingSettings({ scene: 1, merchantId, merchantName })
let { shopMerchantId, merchantId, shopMerchantName } = userInfo
const data = await uni.$api.boutiqueApi.getMerchantRecordingSettings({
scene: 1,
merchantId: shopMerchantId,
merchantName: shopMerchantName
})
if (data) {
let YQorderSetting = {}
const keyMap = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!