|
@@ -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,"咨询单状态有误无法转单");
|
|
|
// }
|