소스 검색

会员升级

Kirin 2 년 전
부모
커밋
b6653c6081
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/controller/api/v1/PublicController.php

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

@@ -62,11 +62,11 @@ class PublicController extends BaseController
     public function test()
     public function test()
     {
     {
         $list = UserIntegral::where('add_time', 'between', [1705766400, 1705852800])->where('extract_sum_real', null)->where('type', 0)
         $list = UserIntegral::where('add_time', 'between', [1705766400, 1705852800])->where('extract_sum_real', null)->where('type', 0)
-            ->group('link_id')->field('link_id,count(id),price')->select()->toArray();
+            ->group('link_id')->field('link_id,count(id),price,add_time')->select()->toArray();
 
 
         foreach ($list as $v) {
         foreach ($list as $v) {
 
 
-            $this->dealOrderIntegral(StoreOrder::where('id', $v['link_id'])->find(), $v['price'], $time);
+            $this->dealOrderIntegral(StoreOrder::where('id', $v['link_id'])->find(), $v['price'], $v['add_time']);
         }
         }
 
 
     }
     }