jason 6 mesiacov pred
rodič
commit
332eb818f9
1 zmenil súbory, kde vykonal 14 pridanie a 1 odobranie
  1. 14 1
      application/api/controller/Index.php

+ 14 - 1
application/api/controller/Index.php

@@ -64,7 +64,20 @@ class Index extends Api
 
         $this->success('ok:'. $i);
     }
- 
+
+    public function reset_user_pledge()
+    {
+        $list = UserPledge::where('status', 1)->select();
+        $ids = '';
+        foreach ($list as $item){
+            $info = json_decode($item->details, true);
+            foreach ($info as $value){
+                $ids .= $value->id . ',';
+            }
+        }
+        dump($ids);
+
+    }