@@ -291,10 +291,8 @@ class ProductService extends ServiceBase {
...
@@ -291,10 +291,8 @@ class ProductService extends ServiceBase {
letfailRet=[];
letfailRet=[];
for(leti=0;i<arr.length;i++){
for(leti=0;i<arr.length;i++){
constitem=arr[i];
constitem=arr[i];
letmsg='';
letobj={};
if(!item.price||!item.payCode){
if(!item.payCode||!item.price){
msg=JSON.stringify(item)+" 参数错误!"
failRet.push(msg)
continue;
continue;
}
}
letsql="SELECT a.uapp_id,a.item_name,b.id,b.product_id,b.pay_code,b.price,b.supply_price FROM `p_product` a LEFT JOIN `p_product_price` b ON a.id = b.product_id where b.pay_code = :payCode and a.uapp_id = :uapp_id";
letsql="SELECT a.uapp_id,a.item_name,b.id,b.product_id,b.pay_code,b.price,b.supply_price FROM `p_product` a LEFT JOIN `p_product_price` b ON a.id = b.product_id where b.pay_code = :payCode and a.uapp_id = :uapp_id";
...
@@ -304,14 +302,20 @@ class ProductService extends ServiceBase {
...
@@ -304,14 +302,20 @@ class ProductService extends ServiceBase {