WIN-2308041133\Administrator преди 6 месеца
родител
ревизия
1287861382
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      application/api/controller/Wechat.php

+ 3 - 3
application/api/controller/Wechat.php

@@ -313,13 +313,13 @@ class Wechat extends Api
     public function signing_plan()
     {
         if ($this->cid<=0){
-            $a=WechatPlan::where('cid', 12)->select();
+            $a=WechatPlan::where('cid', 12)->select()->toArray();
         }else{
-            $a=WechatPlan::where('cid', $this->cid)->select();
+            $a=WechatPlan::where('cid', $this->cid)->select()->toArray();
         }
 
         var_dump($a);
-//        $this->success('获取成功', );
+        return $this->success('获取成功', WechatPlan::where('cid', 12)->select()->toArray());
     }
 
 }