苹果支付生成订单 和支付金额

This commit is contained in:
2025-12-24 19:41:01 +08:00
parent 545ce25703
commit 6488f65bd3
2 changed files with 7 additions and 1 deletions

View File

@@ -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);