Commit c09ca9db by 任晓松

价格修改

parent 889c71e6
......@@ -40,6 +40,9 @@ class ProductAPI extends WEBBase {
case "getProductRecommend":
opResult = await this.utilsProductSve.getProductRecommend(pobj,pobj.actionBody);
break;
case "updateProductPrice":
opResult = await this.utilsProductSve.updateProductPrice(pobj,pobj.actionBody);
break;
default:
opResult = system.getResult(null, "action_type参数错误");
}
......
......@@ -117,6 +117,23 @@ class UtilsProductService extends AppServiceBase {
let url = settings.centerAppUrl() + "action/opProduct/springBoard";
return await this.restPostUrl(pobj,url);
}
/**
* 修改产品销售价格
* @param pobj
* @param actionBody
* @returns {Promise<void>}
*/
async updateProductPrice(pobj,actionBody){
if(!actionBody.payCode){
return system.getResultFail(-1,'产品码 payCode 不能为空!')
}
if(!actionBody.price){
return system.getResultFail(-1,'价格 price 不能为空!')
}
let url = settings.centerAppUrl() + "action/opProduct/springBoard";
return await this.restPostUrl(pobj,url);
}
}
module.exports = UtilsProductService;
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