Commit efbfe7a2 authored by clone's avatar clone

1

parent 3d192f42
......@@ -159,21 +159,21 @@ class Amercement extends Basic
$response = $curl->post($url, $data);
$result = json_decode($response, true);
if ($result && $result["code"] == 0) {
$status = 0;
$status = 0;
$is_success = $result["data"]["oritranstatus"];
if ($is_success == "01") {
$status = 1;
}elseif ($is_success == "02"){
} elseif ($is_success == "02") {
$status = 3;
}else{
} else {
$status = 2;
}
$remark = $result["data"]["orirespmsg"];
$is_ok = $this->s_amercement->updatePayAmercement($params["trade_no"],$status,$remark);
if($is_ok > 0){
return $this->response("200","success",["status"=>$status,",remark"=>$remark]);
}else{
return $this->response("101","查询异常请稍后再试");
$remark = $result["data"]["orirespmsg"];
$is_ok = $this->s_amercement->updatePayAmercement($params["trade_no"], $status, $remark);
if ($is_ok > 0) {
return $this->response("200", "success", ["status" => $status, "remark" => $remark]);
} else {
return $this->response("101", "查询异常请稍后再试");
}
} else {
return $this->response("101", $result["msg"]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment