WIN-2308041133\Administrator 6 mesi fa
parent
commit
1287861382
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  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());
     }
 
 }