Sfoglia il codice sorgente

平台订单导入,脚本优化

wufeng 2 anni fa
parent
commit
523032d804
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2 4
      app/command/handleYzOrderData.php

+ 2 - 4
app/command/handleYzOrderData.php

@@ -484,12 +484,10 @@ class handleYzOrderData extends Command
                 //维护台账记录
                 Db::name('standing_book')->insert(array_merge($standing_book_data, ['addtime' => date('Y-m-d H:i:s'), 'updatetime' => date('Y-m-d H:i:s'), 'standBookNo' => makeNo("IO")]));
 
+                Db::commit();
 
                 //回调更新有赞订单数据
-                $callback_rs = $this->callbackYz(['status' => 6, 'id' => $c_data['id'], 'orderCode' => $orderCode]);
-                if ($callback_rs['code'] != 0) throw new Exception($callback_rs['message']);
-
-                Db::commit();
+                $this->callbackYz(['status' => 6, 'id' => $c_data['id'], 'orderCode' => $orderCode]);
 
                 $output->writeln(date('Y-m-d H:i:s') . '|处理成功,orderCode:' . $orderCode);