|
@@ -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);
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|