|
@@ -125,7 +125,7 @@ class After extends Base
|
|
|
|
|
|
Db::execute("UPDATE `wsm_standing_book` SET `returnCode`=CONCAT(`returnCode`,',{$returnCode}'),`updatetime`='" . date('Y-m-d H:i:s') . "' WHERE FIND_IN_SET('{$outCode}',`outCode`)");
|
|
|
|
|
|
- $process = ["order_code" => $returnCode, "order_id" => $create, "order_status" => $in['status'], "order_type" => 'SHD', "before_status" => 1, 'wait_id' => $orderout['apply_id'], 'wait_name' => $orderout['apply_name']];
|
|
|
+ $process = ["order_code" => $returnCode, "order_id" => $create, "order_status" => $in['status'], "order_type" => 'SHD', "before_status" => 1];
|
|
|
ProcessOrder::AddProcess($token,$process);
|
|
|
Db::commit();
|
|
|
return app_show(0,"售后申请单新建成功",["returnCode"=>$returnCode]);
|
|
@@ -319,8 +319,7 @@ class After extends Base
|
|
|
if(empty($info)){
|
|
|
return error_show(1005,"未找到售后数据");
|
|
|
}
|
|
|
- $status = isset($this->post['status']) && $this->post['status']!=="" ? intval($this->post['status'])
|
|
|
- :"";
|
|
|
+ $status = isset($this->post['status']) && $this->post['status']!=="" ? intval($this->post['status']) :"";
|
|
|
if($status===""){
|
|
|
return error_show(1005,"参数status 不能为空");
|
|
|
}
|
|
@@ -402,7 +401,11 @@ class After extends Base
|
|
|
}
|
|
|
$order = ["order_code"=>$info['returnCode'],"status"=>$var,"action_remark"=>'',"action_type"=>"edit"];
|
|
|
ActionLog::logAdd($this->post['token'],$order,"SHD", $info['status'],$this->post);
|
|
|
- $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$status,"order_type"=>"SHD","before_status"=>$var];
|
|
|
+
|
|
|
+ if (in_array($status, [2, 3])) $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var, 'wait_id' => $info['cgderid'], 'wait_name' => $info['cgder']];
|
|
|
+ elseif ($status == 4) $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var, 'wait_id' => $info['apply_id'], 'wait_name' => $info['apply_name']];
|
|
|
+ else $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var];
|
|
|
+
|
|
|
ProcessOrder::AddProcess($this->post['token'],$process);
|
|
|
Db::commit();
|
|
|
return app_show(0,"更新成功");
|