Commit c8ca9dad authored by GuanHua's avatar GuanHua

fix: 修改判断工作流和下单接口参数

parent f24c8707
......@@ -392,13 +392,14 @@ const CommodityDetail = (props) => {
postFn = PublicApi.postSearchShopPurchaseSaveOrUpdatePurchase
break;
}
const userInfo = getAuth() || {}
const directParam: any = {
productId: selectCommodityId,
memberId,
shopId: storeId,
memberRoleId: userInfo.memberRoleId
memberRoleId: commodityDetail.memberRoleId
}
PublicApi.postOrderDirectPayment(directParam).then(res => {
if (res.code === 1000) {
message.destroy()
......@@ -511,12 +512,11 @@ const CommodityDetail = (props) => {
if (clickFlag) {
clickFlag = false
const userInfo = getAuth() || {}
const param: any = {
productId: selectCommodityId,
memberId,
shopId: storeId,
memberRoleId: userInfo.memberRoleId
memberRoleId: commodityDetail.memberRoleId
}
PublicApi.postOrderDirectPayment(param).then(res => {
if (res.code === 1000) {
......
......@@ -287,7 +287,6 @@ const Order: React.FC<OrderPropsType> = (props) => {
const params: any = {
orderModel: getOrderMode(), // 下单模式
needTheInvoice: needTheInvoice ? 1 : 0,
memberRoleId: userInfo.memberRoleId,
shopId: storeId
}
......
......@@ -599,7 +599,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
productIds,
memberId: selectItem.memberId,
shopId: storeId,
memberRoleId: userInfo.memberRoleId
memberRoleId: selectItem.memberRoleId,
}
PublicApi.postOrderIsWorkFlow(param).then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment