1.排队测试
This commit is contained in:
parent
ddb5d0bc36
commit
e92c02534b
@ -76,7 +76,8 @@ class Billions extends Api
|
||||
*/
|
||||
public function rechargeBalance()
|
||||
{
|
||||
$result = PayNotifyLogic::handle('recharge', 11, 22);
|
||||
$order['order_amount'] = 100;
|
||||
$result = PayNotifyLogic::handle('recharge_billions', $order, 196);
|
||||
// $post = $this->request->post();
|
||||
// $result = BillionsLogic::applyBillionsBalance($this->user_id, $post);
|
||||
|
||||
|
||||
@ -374,8 +374,6 @@ class PayNotifyLogic
|
||||
*/
|
||||
private static function recharge($order_sn, $extra = [])
|
||||
{
|
||||
$order['order_amount'] = 100;
|
||||
self::recharge_billions($order, 196);
|
||||
Log::write('微信支付异步回调: ' . $order_sn);
|
||||
$new = time();
|
||||
$recharge_order = new RechargeOrder();
|
||||
@ -408,7 +406,7 @@ class PayNotifyLogic
|
||||
}
|
||||
|
||||
private static function recharge_billions($order, $user_id)
|
||||
{
|
||||
{var_dump($order);var_dump($user_id);
|
||||
$user_subsidy = 2; // 自我补贴
|
||||
$all_user_subsidy = 20; //全用户获取的比例
|
||||
$user_start_num = 1; // 补贴前几位数量
|
||||
@ -463,6 +461,7 @@ class PayNotifyLogic
|
||||
// 插入提现记录
|
||||
$first_save_record = Db::name("subsidy_withdrawal_record")->save($dat);
|
||||
if ($first_save_record) {
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
@ -491,6 +490,7 @@ class PayNotifyLogic
|
||||
// 插入提现记录
|
||||
$first_save_record = Db::name("subsidy_withdrawal_record")->save($dat);
|
||||
if ($first_save_record) {
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
@ -591,6 +591,7 @@ class PayNotifyLogic
|
||||
// 插入提现记录
|
||||
$save_record = Db::name("subsidy_withdrawal_record")->save($dat);
|
||||
if ($save_record) {
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
@ -620,6 +621,7 @@ class PayNotifyLogic
|
||||
// 插入提现记录
|
||||
$save_record = Db::name("subsidy_withdrawal_record")->save($dat);
|
||||
if ($save_record) {
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
@ -690,6 +692,7 @@ class PayNotifyLogic
|
||||
// 插入提现记录
|
||||
$save_record = Db::name("subsidy_withdrawal_record")->save($dat);
|
||||
if ($save_record) {
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
@ -723,6 +726,7 @@ class PayNotifyLogic
|
||||
// 插入提现记录
|
||||
$save_record = Db::name("subsidy_withdrawal_record")->save($dat);
|
||||
if ($save_record) {
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user