Commit 84dfe150 by sxy

fix: 获取产品地区

parent 762d6918
......@@ -4,7 +4,7 @@ var settings = require("../../../../config/settings");
class ProductAPI extends APIBase {
constructor() {
super();
this.productpriceS=system.getObject("service.common.productpriceSve")
this.productpriceS = system.getObject("service.product.productpriceSve")
}
/**
*
......@@ -16,10 +16,10 @@ class ProductAPI extends APIBase {
* code:''
* ]
*/
async findRegionsByProductName(p,q,req){
let pname=p.productname;
let sp=p.sp;
let rs=await this.productpriceS.findRegionsByProductName(pname, sp)
async findRegionsByProductName(p, q, req) {
let pname = p.productname;
let sp = p.sp;
let rs = await this.productpriceS.findRegionsByProductName(pname, sp)
return system.getResult(rs);
}
classDesc() {
......@@ -39,7 +39,7 @@ class ProductAPI extends APIBase {
}
methodDescs() {
return [
];
}
exam() {
......
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