修改收益计算比例, 支付回调修改
This commit is contained in:
@@ -24,8 +24,8 @@ class Gift extends Model
|
|||||||
// $rate = 0.2;
|
// $rate = 0.2;
|
||||||
// }
|
// }
|
||||||
// $rate = 0.2;
|
// $rate = 0.2;
|
||||||
$rate = 0.1;
|
$rate = 0.2;
|
||||||
$this->room_owner_rate = $rate;
|
$this->room_owner_rate = $rate;
|
||||||
$this->user_rate = 0.6;
|
$this->user_rate = 0.6;
|
||||||
$this->guild_user_rate = 0.63;
|
$this->guild_user_rate = 0.63;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -443,7 +443,8 @@ class UserRecharge extends Model
|
|||||||
|
|
||||||
$bizcontent = json_encode($arr, JSON_UNESCAPED_UNICODE);
|
$bizcontent = json_encode($arr, JSON_UNESCAPED_UNICODE);
|
||||||
// $request->setNotifyUrl("http://" . $_SERVER['HTTP_HOST'] . "/api/pay_notify/ali_pay_notify");
|
// $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);
|
$request->setBizContent($bizcontent);
|
||||||
//这里和普通的接口调用不同,使用的是sdkExecute
|
//这里和普通的接口调用不同,使用的是sdkExecute
|
||||||
$response = $aop->sdkExecute($request);
|
$response = $aop->sdkExecute($request);
|
||||||
@@ -463,7 +464,8 @@ class UserRecharge extends Model
|
|||||||
$params['trade_type'] = 'APP'; //交易类型 JSAPI | NATIVE | APP | WAP
|
$params['trade_type'] = 'APP'; //交易类型 JSAPI | NATIVE | APP | WAP
|
||||||
$params['attach'] = '123'; //附加参数
|
$params['attach'] = '123'; //附加参数
|
||||||
// $params['notify_url'] = "http://" . $_SERVER['HTTP_HOST'] . "/api/pay_notify/wx_pay_notify";
|
// $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);
|
$result = $WxPay->unifiedOrder($params);
|
||||||
// dump($result);die;
|
// dump($result);die;
|
||||||
if ($result['prepay_id']) {
|
if ($result['prepay_id']) {
|
||||||
|
|||||||
Reference in New Issue
Block a user