Browse Source

换货优化报备单

wufeng 2 years ago
parent
commit
1647353b45
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/admin/controller/After.php

+ 3 - 2
app/admin/controller/After.php

@@ -1442,9 +1442,10 @@ class After extends Base
 //            return error_show(1003,"参数bidNo不能为空");
 //        }
 
-        $zxinfo = Db::name("consult_bids")->where(["bidNo" => $old_sale['zxNo'], "is_del" => 0])->find();
-        if ($zxinfo == false) return error_show(1005, '未找到咨询单商品信息');
+        if ($old_sale['order_type'] == 4) $zxinfo = Db::name("good_zixun")->field('*,"" infoNo')->where(["spuCode" => $spuCode, "is_del" => 0])->find();
+        else $zxinfo = Db::name("consult_bids")->where(["bidNo" => $old_sale['zxNo'], "is_del" => 0])->find();
 
+        if ($zxinfo == false) return error_show(1005, '未找到咨询单商品信息');
 //        if($zxinfo['status']!=6){
 //            return error_show(1003,"咨询单状态有误无法转单");
 //        }