Commit c5d3ffb4 by 庄冰

aaa

parent a53aea7d
...@@ -8,11 +8,11 @@ class AppProductService extends ServiceBase { ...@@ -8,11 +8,11 @@ class AppProductService extends ServiceBase {
} }
//根据渠道产品码获取产品详情 //根据渠道产品码获取产品详情
async findByChannelItemCode(obj){ async findByChannelItemCode(obj){
var user = obj.user; // var user = obj.user;
var app = obj.app; var app = obj.app;
if(!user){ // if(!user){
return system.getResultFail(-101, "未知用户"); // return system.getResultFail(-101, "未知用户");
} // }
if(!app){ if(!app){
return system.getResultFail(-102, "未知渠道"); return system.getResultFail(-102, "未知渠道");
} }
...@@ -33,11 +33,11 @@ class AppProductService extends ServiceBase { ...@@ -33,11 +33,11 @@ class AppProductService extends ServiceBase {
} }
//获取产品列表(根据父类产品编码获取) //获取产品列表(根据父类产品编码获取)
async findByProductTypeCode(obj){ async findByProductTypeCode(obj){
var user = obj.user; // var user = obj.user;
var app = obj.app; var app = obj.app;
if(!user){ // if(!user){
return system.getResultFail(-101, "未知用户"); // return system.getResultFail(-101, "未知用户");
} // }
if(!app){ if(!app){
return system.getResultFail(-102, "未知渠道"); return system.getResultFail(-102, "未知渠道");
} }
...@@ -63,11 +63,11 @@ class AppProductService extends ServiceBase { ...@@ -63,11 +63,11 @@ class AppProductService extends ServiceBase {
} }
//获取产品列表(根据产品一类编码获取) //获取产品列表(根据产品一类编码获取)
async findByProductOneTypeCode(obj){ async findByProductOneTypeCode(obj){
var user = obj.user; // var user = obj.user;
var app = obj.app; var app = obj.app;
if(!user){ // if(!user){
return system.getResultFail(-101, "未知用户"); // return system.getResultFail(-101, "未知用户");
} // }
if(!app){ if(!app){
return system.getResultFail(-102, "未知渠道"); return system.getResultFail(-102, "未知渠道");
} }
......
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