Kirin пре 5 дана
родитељ
комит
82b466ab1b
1 измењених фајлова са 1 додато и 5 уклоњено
  1. 1 5
      app/controller/api/v1/PublicController.php

+ 1 - 5
app/controller/api/v1/PublicController.php

@@ -79,11 +79,7 @@ class PublicController extends BaseController
         /** @var UserServices $userService */
 
 
-        $list = $awardIntegralService->search()->select();
-        foreach ($list as $v) {
-            $order = StoreOrder::where('id', $v['order_id'])->value('pay_type');
-            $awardIntegralService->update($v['id'], ['pay_type' => $order]);
-        }
+        var_dump($awardIntegralService->getPaySum(11));
 //        $userService = app()->make(UserServices::class);
 //        $rate = sys_config('action_integral_rate', 3);
 //        $award_order_limit = sys_config('award_order_limit');