修复不修改不重审

master
chenzhi 5 years ago
parent a9723597f0
commit 036a710f2f

@ -253,10 +253,14 @@ class CompanyStatementController extends ThinkController
$params['first_party_info'] = json_encode($params['first_party_info'],JSON_UNESCAPED_UNICODE); $params['first_party_info'] = json_encode($params['first_party_info'],JSON_UNESCAPED_UNICODE);
$params['second_party_info'] = json_encode($params['second_party_info'],JSON_UNESCAPED_UNICODE); $params['second_party_info'] = json_encode($params['second_party_info'],JSON_UNESCAPED_UNICODE);
$params['statement_info'] = json_encode($params['statement_info'],JSON_UNESCAPED_UNICODE); $params['statement_info'] = json_encode($params['statement_info'],JSON_UNESCAPED_UNICODE);
$params['verify_status'] = 0;
$params['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s")]); $y = M("CompanyStatement", "tab_")->where("id='{$params['id']}'")->find();
$params['op_time'] = time(); if($y['first_party_info'] != $params['first_party_info'] || $y['second_party_info'] != $params['second_party_info'] || $y['statement_info'] != $params['statement_info']){
M("CompanyStatement","tab_")->save($params); $params['verify_status'] = 0;
$params['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s")]);
$params['op_time'] = time();
M("CompanyStatement","tab_")->save($params);
}
$this->ajaxReturn(["code"=>0,"msg"=>"ok"]); $this->ajaxReturn(["code"=>0,"msg"=>"ok"]);
}else{ }else{
if (!isset($_REQUEST['id'])) { if (!isset($_REQUEST['id'])) {

Loading…
Cancel
Save