WIN-2308041133\Administrator 6 mesi fa
parent
commit
99472b87ce
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      application/api/controller/Wechat.php

+ 4 - 4
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()->toArray();
+            $a=WechatPlan::where('cid', 12)->select();
         }else{
-            $a=WechatPlan::where('cid', $this->cid)->select()->toArray();
+            $a=WechatPlan::where('cid', $this->cid)->select();
         }
 
-        var_dump($a);
-        return $this->success('获取成功', WechatPlan::where('cid', 12)->select()->toArray());
+        var_dump($a);die();
+        return $this->success('获取成功', $a);
     }
 
 }