|
@@ -632,10 +632,13 @@ class Purch extends Base
|
|
|
'updatetime' => date("Y-m-d H:i:s"),
|
|
|
]);
|
|
|
if ($upd) {
|
|
|
- $process = ["order_code" => implode(',', $cgdNo), "order_id" => 0, "order_status" => $status, "order_type" => 'CGD',"before_status"=>0];
|
|
|
- ProcessOrder::AddProcess($this->post['token'], $process);
|
|
|
- $order = ["order_code" => implode(',', $cgdNo), "status" => '', "action_remark" => $remark, "action_type" => "status"];
|
|
|
- ActionLog::logAdd($this->post['token'], $order, 'CGD', $status, $this->post);
|
|
|
+ foreach ($cgdNo as $vlue){
|
|
|
+ $process = ["order_code" => $vlue, "order_id" => 0, "order_status" => $status, "order_type" => 'CGD',"before_status"=>0];
|
|
|
+ ProcessOrder::AddProcess($this->post['token'], $process);
|
|
|
+ $order = ["order_code" => $vlue, "status" => '', "action_remark" => $remark, "action_type" => "status"];
|
|
|
+ ActionLog::logAdd($this->post['token'], $order, 'CGD', $status, $this->post);
|
|
|
+ }
|
|
|
+
|
|
|
return app_show(0, "更新成功");
|
|
|
} else {
|
|
|
return error_show(1004, '更新失败');
|