This commit is contained in:
“wanyongkang”
2025-02-14 15:16:25 +08:00
parent f0fe92ae20
commit 36be468ac6

View File

@@ -102,26 +102,26 @@ class CashOutAdmin extends Controller
$cash_data = $cash->getOne(['id' => $id]); $cash_data = $cash->getOne(['id' => $id]);
if ($data['status'] == '1') { if ($data['status'] == '1') {
$param = [ // $param = [
'out_biz_no' => '2020' . time() . rand(10000, 99999), // 'out_biz_no' => '2020' . time() . rand(10000, 99999),
'trans_amount' => $cash_data['money'], // 'trans_amount' => $cash_data['money'],
'product_code' => 'TRANS_ACCOUNT_NO_PWD', // 'product_code' => 'TRANS_ACCOUNT_NO_PWD',
'biz_scene' => 'DIRECT_TRANSFER', // 'biz_scene' => 'DIRECT_TRANSFER',
'payee_info' => [ // 'payee_info' => [
'identity' => $cash_data['alipay_account'], // 'identity' => $cash_data['alipay_account'],
'identity_type' => 'ALIPAY_LOGON_ID', // 'identity_type' => 'ALIPAY_LOGON_ID',
'name' => $cash_data['real_name'], // 'name' => $cash_data['real_name'],
], // ],
'remark' => '聚IP提现-会员' . $cash_data['username'] . '-' . $cash_data['money'] . '元', // 'remark' => '聚IP提现-会员' . $cash_data['username'] . '-' . $cash_data['money'] . '元',
]; // ];
$result = Alipay::transfer($param); // $result = Alipay::transfer($param);
if ($result) { // if ($result) {
$data['cash_no'] = $result->alipay_fund_trans_uni_transfer_response->out_biz_no; // $data['cash_no'] = $result->alipay_fund_trans_uni_transfer_response->out_biz_no;
$data['alipay_no'] = $result->alipay_fund_trans_uni_transfer_response->order_id; // $data['alipay_no'] = $result->alipay_fund_trans_uni_transfer_response->order_id;
// $data['status'] = 1;
// } else {
$data['status'] = 1; $data['status'] = 1;
} else { // }
$data['status'] = 1;
}
} else if ($data['status'] == '2') { } else if ($data['status'] == '2') {
if ($cash_data['is_agent'] != 1){ if ($cash_data['is_agent'] != 1){
$user_model = new UserModel; $user_model = new UserModel;