shish %!s(int64=2) %!d(string=hai) anos
pai
achega
e6a20fb700
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      biz-hd/purchase/classes/PurchaseClass.php

+ 1 - 2
biz-hd/purchase/classes/PurchaseClass.php

@@ -130,11 +130,10 @@ class PurchaseClass extends BaseClass
         if (empty($order)) {
         if (empty($order)) {
             util::fail('没有找到订单');
             util::fail('没有找到订单');
         }
         }
-        print_r($order);die;
         if ($order->status != 3) {
         if ($order->status != 3) {
             util::fail('订单不是待入库状态哦');
             util::fail('订单不是待入库状态哦');
         }
         }
-        $order->status == 4;
+        $order->status = 4;
         $order->save();
         $order->save();
         //加库存 lqh 2021-05-10
         //加库存 lqh 2021-05-10
         $orderSn = $cg->orderSn;
         $orderSn = $cg->orderSn;