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]);
if ($data['status'] == '1') {
$param = [
'out_biz_no' => '2020' . time() . rand(10000, 99999),
'trans_amount' => $cash_data['money'],
'product_code' => 'TRANS_ACCOUNT_NO_PWD',
'biz_scene' => 'DIRECT_TRANSFER',
'payee_info' => [
'identity' => $cash_data['alipay_account'],
'identity_type' => 'ALIPAY_LOGON_ID',
'name' => $cash_data['real_name'],
],
'remark' => '聚IP提现-会员' . $cash_data['username'] . '-' . $cash_data['money'] . '元',
];
$result = Alipay::transfer($param);
if ($result) {
$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;
// $param = [
// 'out_biz_no' => '2020' . time() . rand(10000, 99999),
// 'trans_amount' => $cash_data['money'],
// 'product_code' => 'TRANS_ACCOUNT_NO_PWD',
// 'biz_scene' => 'DIRECT_TRANSFER',
// 'payee_info' => [
// 'identity' => $cash_data['alipay_account'],
// 'identity_type' => 'ALIPAY_LOGON_ID',
// 'name' => $cash_data['real_name'],
// ],
// 'remark' => '聚IP提现-会员' . $cash_data['username'] . '-' . $cash_data['money'] . '元',
// ];
// $result = Alipay::transfer($param);
// if ($result) {
// $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['status'] = 1;
// } else {
$data['status'] = 1;
} else {
$data['status'] = 1;
}
// }
} else if ($data['status'] == '2') {
if ($cash_data['is_agent'] != 1){
$user_model = new UserModel;