修改收益计算比例, 支付回调修改

This commit is contained in:
2025-11-10 08:53:48 +08:00
parent 3a9e983296
commit 34f5d342c2
2 changed files with 6 additions and 4 deletions

View File

@@ -24,8 +24,8 @@ class Gift extends Model
// $rate = 0.2;
// }
// $rate = 0.2;
$rate = 0.1;
$this->room_owner_rate = $rate;
$rate = 0.2;
$this->room_owner_rate = $rate;
$this->user_rate = 0.6;
$this->guild_user_rate = 0.63;
}

View File

@@ -443,7 +443,8 @@ class UserRecharge extends Model
$bizcontent = json_encode($arr, JSON_UNESCAPED_UNICODE);
// $request->setNotifyUrl("http://" . $_SERVER['HTTP_HOST'] . "/api/pay_notify/ali_pay_notify");
$request->setNotifyUrl("http://119.45.183.246/api/pay_notify/ali_pay_notify");
// $request->setNotifyUrl("http://119.45.183.246/api/pay_notify/ali_pay_notify");
$request->setNotifyUrl("http://62.234.12.147/api/pay_notify/ali_pay_notify");
$request->setBizContent($bizcontent);
//这里和普通的接口调用不同使用的是sdkExecute
$response = $aop->sdkExecute($request);
@@ -463,7 +464,8 @@ class UserRecharge extends Model
$params['trade_type'] = 'APP'; //交易类型 JSAPI | NATIVE | APP | WAP
$params['attach'] = '123'; //附加参数
// $params['notify_url'] = "http://" . $_SERVER['HTTP_HOST'] . "/api/pay_notify/wx_pay_notify";
$params['notify_url'] = "http://119.45.183.246/api/pay_notify/wx_pay_notify";
// $params['notify_url'] = "http://119.45.183.246/api/pay_notify/wx_pay_notify";
$params['notify_url'] = "http://62.234.12.147/api/pay_notify/wx_pay_notify";
$result = $WxPay->unifiedOrder($params);
// dump($result);die;
if ($result['prepay_id']) {