测试订单推送
This commit is contained in:
@@ -297,12 +297,12 @@ class DataController extends BaseAdminController
|
||||
|
||||
public function actionSendOrder()
|
||||
{
|
||||
$this->orderId = 117;
|
||||
$orderId = 117;
|
||||
$t = \Yii::$app->db->beginTransaction();
|
||||
try {
|
||||
$this->setRequest();
|
||||
$ProductOrder = ProductOrder::find()->with(['prescription','store'])->where([
|
||||
'id' => $this->orderId,
|
||||
'id' => $orderId,
|
||||
'is_pay' => 1,
|
||||
'is_online' => 0,
|
||||
'status' => 1 //已付款待发货
|
||||
@@ -378,8 +378,8 @@ class DataController extends BaseAdminController
|
||||
$t->commit();
|
||||
} catch (\Exception $exception) {
|
||||
$t->rollBack();
|
||||
ProductOrderLog::saveLog($this->orderId,'订单自动同步江奥川ERP('.$ProductOrder->store->erp_id.')异常:'.$exception->getMessage());
|
||||
ProductOrderLog::saveLog($this->orderId,'订单自动同步江奥川ERP('.$ProductOrder->store->erp_id.')异常:'.$exception->getLine());
|
||||
ProductOrderLog::saveLog($orderId,'订单自动同步江奥川ERP('.$ProductOrder->store->erp_id.')异常:'.$exception->getMessage());
|
||||
ProductOrderLog::saveLog($orderId,'订单自动同步江奥川ERP('.$ProductOrder->store->erp_id.')异常:'.$exception->getLine());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user