工行支付
This commit is contained in:
parent
97b7804293
commit
b54a24f069
@ -167,7 +167,7 @@ class Gh extends Api
|
||||
return substr(md5("donglonghui".time().mt_rand(1,1000000)),8,13);
|
||||
}
|
||||
// 查询回调记录
|
||||
public function checkReturn($alog_id=366,$type=""){
|
||||
public function checkReturn($alog_id=370,$type=""){
|
||||
$abutment = Db::name("abutment_log")
|
||||
->where("alog_id",$alog_id)
|
||||
->where("state",0)
|
||||
@ -186,10 +186,10 @@ class Gh extends Api
|
||||
// 解冻查询
|
||||
$r = json_decode($checkPay['order_submit_act_output'],true);
|
||||
$jd = $this->jiedong($r);
|
||||
var_dump($jd);
|
||||
if(!$jd){
|
||||
return JsonServer::error('解冻失败');
|
||||
}
|
||||
// var_dump($jd);
|
||||
// if(!$jd){
|
||||
// return JsonServer::error('解冻失败');
|
||||
// }
|
||||
Db::name("abutment_log")
|
||||
->where("seq_no",$abutment['seq_no'])
|
||||
->update(['state'=>1]);
|
||||
@ -432,15 +432,15 @@ class Gh extends Api
|
||||
),
|
||||
'extraParams'=>[]
|
||||
];
|
||||
print_r("<pre>");
|
||||
// print_r("<pre>");
|
||||
// var_dump($request);
|
||||
$res = $this->apiClient->execute($request,$msg_id,"");
|
||||
// var_dump($res);
|
||||
// $result = json_decode($res,true);
|
||||
$result = json_decode($res,true);
|
||||
// print_r("<pre>");
|
||||
var_dump($result);
|
||||
if($result['returnCode']!="success"){
|
||||
// var_dump($result);
|
||||
if($result['returnMsg']!="success"){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user