浏览代码

会员升级

Kirin 2 年之前
父节点
当前提交
09981f5f76
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      app/controller/api/v1/PublicController.php

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

@@ -11,6 +11,8 @@
 namespace app\controller\api\v1;
 namespace app\controller\api\v1;
 
 
 
 
+use app\jobs\integral\IntegralJob;
+use app\model\user\UserIntegral;
 use app\services\activity\combination\StorePinkServices;
 use app\services\activity\combination\StorePinkServices;
 use app\services\diy\DiyServices;
 use app\services\diy\DiyServices;
 use app\services\message\service\StoreServiceServices;
 use app\services\message\service\StoreServiceServices;
@@ -48,8 +50,10 @@ class PublicController extends BaseController
 
 
     public function test()
     public function test()
     {
     {
-        $levelServices = app()->make(UserLevelServices::class);
-        $levelServices->detection(1);
+        $levelServices = app()->make(IntegralJob::class);
+        foreach (UserIntegral::where('status', 0)->select() as $v) {
+            $levelServices->extract($v['id']);
+        }
     }
     }
 
 
     /**
     /**