工行支付
This commit is contained in:
parent
f06c6da152
commit
2d92e7c3cd
@ -80,10 +80,10 @@ class Gh extends Api
|
|||||||
$general2 = $this->general2($user_id,$out,$money,$user_billions,$user_msg,$type);
|
$general2 = $this->general2($user_id,$out,$money,$user_billions,$user_msg,$type);
|
||||||
$userAccount = "";
|
$userAccount = "";
|
||||||
$order_submit_act_input = array($basic,$general1,$general2);
|
$order_submit_act_input = array($basic,$general1,$general2);
|
||||||
if($type != 0){
|
if($type != ""){
|
||||||
$userAccount = $this->userAccount($user_id,$out,$money,$merchant,$user_msg);
|
$userAccount = $this->userAccount($user_id,$out,$money,$merchant,$user_msg);
|
||||||
$order_num = 4;
|
$order_num = 4;
|
||||||
$order_submit_act_input = array($userAccount,$basic,$general1,$general2);
|
$order_submit_act_input = array($basic,$general1,$general2,$userAccount);
|
||||||
}
|
}
|
||||||
|
|
||||||
$request = [
|
$request = [
|
||||||
@ -167,7 +167,7 @@ class Gh extends Api
|
|||||||
return substr(md5("donglonghui".time().mt_rand(1,1000000)),8,13);
|
return substr(md5("donglonghui".time().mt_rand(1,1000000)),8,13);
|
||||||
}
|
}
|
||||||
// 查询回调记录
|
// 查询回调记录
|
||||||
public function checkReturn($alog_id=370,$type=""){
|
public function checkReturn($alog_id,$type=""){
|
||||||
$abutment = Db::name("abutment_log")
|
$abutment = Db::name("abutment_log")
|
||||||
->where("alog_id",$alog_id)
|
->where("alog_id",$alog_id)
|
||||||
->where("state",0)
|
->where("state",0)
|
||||||
@ -255,30 +255,30 @@ class Gh extends Api
|
|||||||
}
|
}
|
||||||
// 用户账户
|
// 用户账户
|
||||||
public function userAccount($user_id,$out,$money,$merchant,$user_msg){
|
public function userAccount($user_id,$out,$money,$merchant,$user_msg){
|
||||||
$out1 = "dlh".time().$user_id."1";
|
$out4 = "dlh".time().$user_id."4";
|
||||||
$data1['rec_num'] = "1";
|
$data1['rec_num'] = "1";
|
||||||
$data1['seq_no'] = $out;
|
$data1['seq_no'] = $out;
|
||||||
$data1['sub_order_id'] = $out1;
|
$data1['sub_order_id'] = $out4;
|
||||||
$data1['oper_flag'] = "0";
|
$data1['oper_flag'] = "0";
|
||||||
$data1['busi_type'] = "1";
|
$data1['busi_type'] = "1";
|
||||||
$data1['sub_mer_id'] = "120448160198";
|
$data1['sub_mer_id'] = "120405000785";
|
||||||
$data1['sub_mer_prtcl_no'] = "1204481601980201";
|
$data1['sub_mer_prtcl_no'] = "1204050007850201";
|
||||||
$data1['classify_amt'] = $money*$merchant;
|
$data1['classify_amt'] = $money*$merchant;
|
||||||
$data1['user_id'] = $user_id;
|
$data1['user_id'] = $user_id;
|
||||||
$data1['open_id'] = $user_msg['openid'];
|
$data1['open_id'] = $user_msg['openid'];
|
||||||
$data1['dtime'] = date("Y-m-d H:i:s");
|
$data1['dtime'] = date("Y-m-d H:i:s");
|
||||||
$rest = Db::name("abutment_log")->save($data1);
|
$rest = Db::name("abutment_log")->save($data1);
|
||||||
return array(
|
return array(
|
||||||
"rec_num"=>"1",
|
"rec_num"=>"4",
|
||||||
"sub_order_id"=>$out1,
|
"sub_order_id"=>$out4,
|
||||||
"oper_flag"=>"0",
|
"oper_flag"=>"0",
|
||||||
"busi_type"=>"1",
|
"busi_type"=>"1",
|
||||||
"ori_mer_id"=>"120448160200",
|
"ori_mer_id"=>"120448160200",
|
||||||
"seq_no"=>$out,
|
"seq_no"=>$out,
|
||||||
"mer_acct"=>"1911025009202050845",
|
"mer_acct"=>"1204068809100156171",
|
||||||
"ori_trx_date"=>date("Y-m-d"),
|
"ori_trx_date"=>date("Y-m-d"),
|
||||||
"sub_mer_id"=>"120448160198",
|
"sub_mer_id"=>"120405000785",
|
||||||
"sub_mer_prtcl_no"=>"1204481601980201",
|
"sub_mer_prtcl_no"=>"1204050007850201",
|
||||||
"classify_amt"=>strval($money*$merchant)
|
"classify_amt"=>strval($money*$merchant)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user