提现
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user