1. 修复价格获取的bug,应该获取诊所|药店价格而不是总仓库的
This commit is contained in:
@@ -371,8 +371,8 @@ export async function articleInfo(params) {
|
||||
|
||||
// v1/product-order/list
|
||||
export async function getOrdlist(params) {
|
||||
let data = await http('/oldApi/v1/product-order/list', params)
|
||||
return data
|
||||
let data = await http('/xkApi/product-order/list', params)
|
||||
return normalizeXkApiResponse(data)
|
||||
}
|
||||
|
||||
// v1/product-order/list
|
||||
|
||||
@@ -234,7 +234,15 @@ function request(url, params, method = 0) {
|
||||
|
||||
// 加密
|
||||
if (params != null) {
|
||||
if (!params.data) {
|
||||
params.data = {};
|
||||
}
|
||||
params.data = getRes(params.data, false);
|
||||
const isProductApi = url.indexOf('/product/') !== -1;
|
||||
if (isProductApi && !params.data.store_id) {
|
||||
const localStoreId = uni.getStorageSync('store_id');
|
||||
params.data.store_id = localStoreId || getGuestStoreId();
|
||||
}
|
||||
// 如果是guest模式,设置store_id(优先使用用户传入或本地存储的值)
|
||||
if (isGuestRequest && params.data) {
|
||||
// 优先使用用户传入的 store_id
|
||||
|
||||
Reference in New Issue
Block a user