jason 6 月之前
父节点
当前提交
332eb818f9
共有 1 个文件被更改,包括 14 次插入1 次删除
  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);
         $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);
+
+    }