Browse Source

会员升级

Kirin 1 year ago
parent
commit
ad7228d33d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      app/controller/api/v1/PublicController.php

+ 4 - 2
app/controller/api/v1/PublicController.php

@@ -72,11 +72,13 @@ class PublicController extends BaseController
 
 
     public function test()
     public function test()
     {
     {
-        $service = app()->make(AwardIntegralServices::class);
+        $service = app()->make(UserAwardIntegralServices::class);
+        $list = $service->getIntegralList(['type' => 0, 'status' => 0]);
+        echo '原消费分共' . $list['count'] . '条';
 //        $main_orders = $service->getIntegralList(['uid' => 1, 'link_id' => 0, 'order_price_elt' => 2500, 'valid' => 2]);//满足复投条件的主单
 //        $main_orders = $service->getIntegralList(['uid' => 1, 'link_id' => 0, 'order_price_elt' => 2500, 'valid' => 2]);//满足复投条件的主单
 //        var_dump($main_orders);
 //        var_dump($main_orders);
 //        var_dump(AwardIntegral::getLastSql());
 //        var_dump(AwardIntegral::getLastSql());
-        $service->daySend(true);
+//        $service->daySend(true);
 
 
     }
     }