Commit 84dfe150 by sxy

fix: 获取产品地区

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