修改微信支付的金额转换后匹配规则
Change-Id: I6345bb6db44248a8566883431fdd75fc7b0814a9
This commit is contained in:
parent
1bea6363c1
commit
77a0d6fa28
|
@ -108,7 +108,9 @@ if($data['result_code'] == 'SUCCESS' && $data['return_code'] == 'SUCCESS' && $da
|
||||||
$giveUrl = "https://yzms.fsecity.com/api/recharge/get_give_fee";
|
$giveUrl = "https://yzms.fsecity.com/api/recharge/get_give_fee";
|
||||||
// 获取用户token
|
// 获取用户token
|
||||||
$userSession = $db->get_one("select * from tb_session where uid = ".$orderInfo['uid'] . " order by expire_time desc");
|
$userSession = $db->get_one("select * from tb_session where uid = ".$orderInfo['uid'] . " order by expire_time desc");
|
||||||
$giveInfo = gquery($giveUrl, array("token"=>$userSession['token'],"fee"=>$data['total_fee']));
|
|
||||||
|
$giveApiFee = $data['total_fee']/100;
|
||||||
|
$giveInfo = gquery($giveUrl, array("token"=>$userSession['token'],"fee"=>$giveApiFee));
|
||||||
$giveInfo = json_decode($giveInfo, 1);
|
$giveInfo = json_decode($giveInfo, 1);
|
||||||
if($giveInfo['status'] == 1){
|
if($giveInfo['status'] == 1){
|
||||||
$giveFee = $giveInfo['data']['gift_fee'];
|
$giveFee = $giveInfo['data']['gift_fee'];
|
||||||
|
|
|
@ -113,7 +113,9 @@ if($data['result_code'] == 'SUCCESS' && $data['return_code'] == 'SUCCESS' && $da
|
||||||
$giveUrl = "https://yzms.fsecity.com/api/recharge/get_give_fee";
|
$giveUrl = "https://yzms.fsecity.com/api/recharge/get_give_fee";
|
||||||
// 获取用户token
|
// 获取用户token
|
||||||
$userSession = $db->get_one("select * from tb_session where uid = ".$orderInfo['uid'] . " order by expire_time desc");
|
$userSession = $db->get_one("select * from tb_session where uid = ".$orderInfo['uid'] . " order by expire_time desc");
|
||||||
$giveInfo = gquery($giveUrl, array("token"=>$userSession['token'],"fee"=>$data['total_fee']));
|
|
||||||
|
$giveApiFee = $data['total_fee']/100;
|
||||||
|
$giveInfo = gquery($giveUrl, array("token"=>$userSession['token'],"fee"=>$giveApiFee));
|
||||||
$giveInfo = json_decode($giveInfo, 1);
|
$giveInfo = json_decode($giveInfo, 1);
|
||||||
if($giveInfo['status'] == 1){
|
if($giveInfo['status'] == 1){
|
||||||
$giveFee = $giveInfo['data']['gift_fee'];
|
$giveFee = $giveInfo['data']['gift_fee'];
|
||||||
|
|
Loading…
Reference in New Issue