工行支付
This commit is contained in:
parent
c6655a51ec
commit
531f49131b
@ -249,6 +249,10 @@ class Billions extends Api
|
||||
$da['create_time'] = date("Y-m-d H:i:s");
|
||||
Db::name("subsidy_withdrawal_record")->save($da);
|
||||
return JsonServer::success('零钱提现中');
|
||||
}
|
||||
|
||||
public function advance($billions_id,$money){
|
||||
|
||||
}
|
||||
|
||||
public static function removeEmojiChar($str){
|
||||
|
||||
@ -142,8 +142,8 @@ class Gh extends Api
|
||||
$rest = Db::name("abutment_log")->insertGetId($data);
|
||||
$res = $this->apiClient->execute($request,$msg_id,"");
|
||||
$result = json_decode($res,true);
|
||||
// print_r("<pre>");
|
||||
// var_dump($result);
|
||||
print_r("<pre>");
|
||||
var_dump($result);
|
||||
$r = json_decode($result['wx_data_package'],true);
|
||||
|
||||
if($order_id == 0){
|
||||
|
||||
@ -59,4 +59,42 @@ class Huifu extends Api
|
||||
var_dump($result);
|
||||
}
|
||||
}
|
||||
|
||||
public function test(){
|
||||
$data = [
|
||||
'agetId'=>"FWH000025501",
|
||||
'custId'=>"60000008228471",
|
||||
'orderNo'=>"dlh".time().$user_id,
|
||||
'txamt'=>$money,
|
||||
'openid'=>$user['openid'],
|
||||
'payWay'=>"1",
|
||||
'ip'=>$_SERVER['REMOTE_ADDR'],
|
||||
'timeStamp'=>time(),
|
||||
'version'=>"1.0.0",
|
||||
'wxAppid'=>'wx586d77b9edb0636d',
|
||||
'traType'=>'8'
|
||||
];
|
||||
$d =$this->ASCII($data);
|
||||
$data['sign'] = $this->sign($d,$this->publicKey);
|
||||
print_r("<pre>");
|
||||
var_dump($data);
|
||||
$b = json_encode($data,true);
|
||||
var_dump($b);
|
||||
$url = "https://yyfsvxm.postar.cn/yyfsevr/order/pay";
|
||||
$result = $this->curl_post($url,$b);
|
||||
var_dump($result);
|
||||
}
|
||||
function ASCII($params=array()){
|
||||
ksort($params);
|
||||
reset($params);
|
||||
$str = "";
|
||||
$t = array();
|
||||
foreach($params as $key=>$value){
|
||||
$t[] = $key."=".$value;
|
||||
}
|
||||
|
||||
$str = implode("&",$t);
|
||||
// $str = http_build_query($params,'','&');
|
||||
return $str;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user