Silent 6 years ago
parent
commit
c13a9f88da
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/Http/Controllers/WeChat/ApiController.php
  2. 1 1
      wechat/pages/form/index.js

+ 1 - 1
app/Http/Controllers/WeChat/ApiController.php

xqd
@@ -588,7 +588,7 @@ class ApiController extends Controller
     public function submitForm(Request $request)
     {
         if(empty($request->input('data')) || !is_array($request->input('data'))) {
-            return response()->json(['status' => 'fail', 'info' => '参数错误']);
+            return response()->json(['status' => 'fail', 'info' => '参数错误11']);
         }
 
         $form_set = FormSet::first();

+ 1 - 1
wechat/pages/form/index.js

xqd
@@ -99,7 +99,7 @@ Page({
     }
     wx.request({
       url: api.submitFormUrl,
-      method: 'POST',
+      method: 'GET',
       data: {
         data: value
       },