苹果支付生成订单 和支付金额
This commit is contained in:
@@ -22,7 +22,7 @@ class Payment extends Controller
|
||||
* APP支付
|
||||
*/
|
||||
public function app_pay() {
|
||||
$type = input('type', 0); //1-微信 2-支付宝 4-通联支付宝 5-通联微信
|
||||
$type = input('type', 0); //1-微信 2-支付宝 4-通联支付宝 5-通联微信 6-苹果支付
|
||||
$user_id = input('user_id', 0);
|
||||
$money = input('money', 0);
|
||||
$coin = input('coin', 0);
|
||||
@@ -95,6 +95,10 @@ class Payment extends Controller
|
||||
Loader::import('TongLian.TongLian', EXTEND_PATH, '.php');
|
||||
$tonglian = new \TongLian();
|
||||
$result['tl'] = $tonglian->TongLianPay($data, $type);
|
||||
}elseif($type == 6){
|
||||
$result = null;
|
||||
}else{
|
||||
return V(0, '请选择正确的支付方式', null);
|
||||
}
|
||||
|
||||
return V(1, 'app支付', $result);
|
||||
|
||||
@@ -82,6 +82,8 @@ class UserWallet extends BaseCom
|
||||
foreach ($reslut as $k=>$v){
|
||||
$reslut_data[$k]['money'] = $v['money'];
|
||||
$reslut_data[$k]['coins'] = $v['coins'];
|
||||
$reslut_data[$k]['ios_coins'] = $v['coins'] * 7 / 10;
|
||||
$reslut_data[$k]['product_id'] = $v['product_id'];
|
||||
}
|
||||
return V(1, '获取成功', $reslut_data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user