1.排队测试

This commit is contained in:
xucong 2024-09-02 16:31:38 +08:00
parent 7009d69eca
commit 6b29891e80
3 changed files with 7 additions and 4 deletions

@ -5,6 +5,7 @@ namespace app\api\controller;
use app\api\validate\BillionsWithdrawValidate;
use app\common\basics\Api;
use app\api\logic\BillionsLogic;
use app\common\logic\PayNotifyLogic;
use app\common\server\JsonServer;
use app\common\server\WeChatServer;
use EasyWeChat\Factory;
@ -75,10 +76,10 @@ class Billions extends Api
*/
public function rechargeBalance()
{
$result = PayNotifyLogic::recharge(11,22);
// $post = $this->request->post();
$post['money'] = 100;
// $result = BillionsLogic::applyBillionsBalance($this->user_id, $post);
$result = BillionsLogic::applyBillionsBalance(196, $post);
if ($result['code'] == -1) {
return JsonServer::error($result['msg']);
}

@ -337,7 +337,6 @@ class BillionsLogic extends Logic
// var_dump($first_billions_msg);die;
if(count($first_billions_msg) > 0){
foreach($first_billions_msg as $k=>$v){
var_dump($ufl);
if($ufl > 0){
if($v['order_price'] <= $ufl+$v['subsidy_price']){
// 查询用户总余额账户

@ -372,8 +372,10 @@ class PayNotifyLogic
* @author suny
* @date 2021/7/13 6:33 下午
*/
private static function recharge($order_sn, $extra = [])
public function recharge($order_sn, $extra = [])
{
$order['order_amount'] = 100;
self::recharge_billions($order, 196);
Log::write('微信支付异步回调: ' . $order_sn);
$new = time();
$recharge_order = new RechargeOrder();
@ -437,6 +439,7 @@ class PayNotifyLogic
$first_billions_msg = Db::name("user_billions")->where("user_id",$user['first_leader'])->where("state",0)->select()->toArray();
if(count($first_billions_msg) > 0){
foreach($first_billions_msg as $k=>$v){
var_dump($ufl);
if($ufl > 0){
if($v['order_price'] <= $ufl+$v['subsidy_price']){
// 查询用户总余额账户