Browse Source

会员升级

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

+ 17 - 16
app/controller/api/v1/PublicController.php

@@ -59,22 +59,23 @@ class PublicController extends BaseController
 
     public function test()
     {
-        $rate1 = sys_config('action_integral_rate', 3);
-        $rate2 = sys_config('static_integral_rate', 3);
-        $service = app()->make(UserAwardIntegralServices::class);
-        $list = $service->getList(['status' => 0]);
-        foreach ($list as $v) {
-            if ($v['type'] == 1) {
-                $sum_extract = bcmul($rate1, $v['sum_price'], 2);
-            } else {
-                $sum_extract = bcmul($rate2, $v['order_price'], 2);
-            }
-            if ($sum_extract != $v['extract_sum']) {
-                $service->update($v['id'], ['extract_sum' => $sum_extract]);
-            }
-        }
-        app()->make(IntegralJob::class)->autoExtract($service->getPrice());
-        return app('json')->successful('ok');
+//        $rate1 = sys_config('action_integral_rate', 3);
+//        $rate2 = sys_config('static_integral_rate', 3);
+//        $service = app()->make(UserAwardIntegralServices::class);
+//        $list = $service->getList(['status' => 0]);
+//        foreach ($list as $v) {
+//            if ($v['type'] == 1) {
+//                $sum_extract = bcmul($rate1, $v['sum_price'], 2);
+//            } else {
+//                $sum_extract = bcmul($rate2, $v['order_price'], 2);
+//            }
+//            if ($sum_extract != $v['extract_sum']) {
+//                $service->update($v['id'], ['extract_sum' => $sum_extract]);
+//            }
+//        }
+//        app()->make(IntegralJob::class)->autoExtract($service->getPrice());
+//        return app('json')->successful('ok');
+        WithdrawService::init()::contractInfo(239166);
     }
 
     /**