|
@@ -46,8 +46,26 @@ class Order
|
|
|
|
|
|
$res = curl_request(config('app.yz_domain') . 'api/yz_check_status', array_merge($data, ['uid' => $uid, 'uname' => $uname]));
|
|
|
$res = json_decode($res, true);
|
|
|
- if ($res['code'] == 0) return app_show(0, '操作成功', $res['data']);
|
|
|
- else return error_show(1005, $res['message']);
|
|
|
+ if ($res['code'] == 0) {
|
|
|
+
|
|
|
+ //修改状态,添加待办
|
|
|
+ ActionLog::logAdd(['id' => $uid, 'nickname' => $uname], [
|
|
|
+ "order_code" => $res['data']['skuCode'],
|
|
|
+ "status" => $res['data']['old_status'],//这里的status是之前的值
|
|
|
+ "action_remark" => '',//备注
|
|
|
+ "action_type" => "status"//新建create,编辑edit,更改状态status
|
|
|
+ ], "YZQRD", 0, $data);
|
|
|
+
|
|
|
+ ProcessOrder::AddProcess(['id' => $uid, 'nickname' => $uname], [
|
|
|
+ "order_type" => 'YZQRD',
|
|
|
+ "order_code" => $res['data']['skuCode'],
|
|
|
+ "order_id" => $data['id'],
|
|
|
+ "order_status" => $data['status'],
|
|
|
+ "before_status" => $res['data']['old_status']
|
|
|
+ ]);
|
|
|
+
|
|
|
+ return app_show(0, '操作成功', $res['data']);
|
|
|
+ } else return error_show(1005, $res['message']);
|
|
|
|
|
|
}
|
|
|
|