Explorar el Código

售后优化商品下线的情况

wufeng hace 2 años
padre
commit
cfcc977392
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/admin/controller/After.php

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

@@ -1249,11 +1249,11 @@ class After extends Base
         $goodinfo = Db::name('good')
             ->alias('g')
             ->field('g.*,gp.skuCode')
-            ->leftJoin('good_platform gp', 'gp.spuCode=g.spuCode AND gp.exam_status=6')
+            ->join('good_platform gp', 'gp.spuCode=g.spuCode AND gp.exam_status=6')
             ->where('g.spuCode', $spuCode)
             ->find();
 
-        if (empty($goodinfo)) return error_show(1005, '查不到这个商品');
+        if (empty($goodinfo)) return error_show(1005, '查不到这个商品,或该商品已下线无法售后');
 
         $is_activity = $old_sale['is_activity'];
         $actcode = $old_sale['activity_code'];