WIN-2308041133\Administrator 6 meses atrás
pai
commit
eeb7354319
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      application/api/controller/Wechat.php

+ 4 - 1
application/api/controller/Wechat.php

@@ -115,6 +115,8 @@ class Wechat extends Api
         $uid = intval($request->param('uid'));
         $plan_id = WechatPlan::where('price', $price)->value('plan_id');
         $p_id = WechatPlan::where('price', $price)->value('id');
+        var_dump($plan_id);
+        var_dump($p_id);die();
 //        $plan_id = 11;
 //        $p_id = 12;
         try {
@@ -179,7 +181,8 @@ class Wechat extends Api
                 'wechat_plan_id' => $plan_id,
             ]);
 //            die();
-            return $response;
+            $this->success('获取成功', $response);
+//            return $response;
         } catch (Exception $e) {
             var_dump($e->getMessage());
             @file_put_contents("error.txt", $e->getFile() . '-', $e->getLine(), '-' . $e->getMessage());