Commit 4078273e by 王栋源

wdy

parent 3f4b4da8
......@@ -38,7 +38,7 @@ class OpProductAPI extends APIBase {
case "getaliicProduce"://阿里工商获取产品信息
opResult = await this.productSve.getaliicProduce(pobj.actionBody);
break;
case "getaliicProduce"://阿里icp获取产品信息
case "getaliicpProduce"://阿里icp获取产品信息
opResult = await this.productSve.getaliicpProduce(pobj.actionBody);
break;
case "getProductTypeInfo"://阿里工商获取需求類型
......
......@@ -17,5 +17,29 @@ class ProductTypeService extends ServiceBase {
var producttypeinfo=await this.findOne({"channel_type_code":actionBody.type,"uapp_id":appInfo.uapp_id});
return system.getResultSuccess(producttypeinfo);
}
async getProductTypeInfo(actionBody,appInfo){
if(!actionBody.type){
return system.getResult(null, "type item is data empty !");
}
if(!appInfo){
return system.getResult(null, "appInfo item is data empty !");
}
var producttypeinfo=await this.findOne({"channel_type_code":actionBody.type,"uapp_id":appInfo.uapp_id});
return system.getResultSuccess(producttypeinfo);
}
async getIcpProductTypeInfo(actionBody,appInfo){
if(!actionBody.type){
return system.getResult(null, "channelCode item is data empty !");
}
if(!appInfo){
return system.getResult(null, "appInfo item is data empty !");
}
var
var producttypeinfo=await this.findOne({"channel_type_code":actionBody.type,"uapp_id":appInfo.uapp_id});
return system.getResultSuccess(producttypeinfo);
}
}
module.exports = ProductTypeService;
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