Silent преди 6 години
родител
ревизия
b0b8d16ebd
променени са 2 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 1 1
      app/Http/Controllers/WeChat/ApiController.php
  2. 1 2
      wechat/pages/index/index.js

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

xqd
@@ -205,7 +205,7 @@ class ApiController extends Controller
         $res = $client->get($url);
         $res = json_decode((string)$res->getBody());
         $result = 'no';
-        Log::info($res);
+        dd($res);
         if($res->status == 0) {
             $radius = Setting::where('key', 'check_card_radius')->first();
             $radius = empty($radius) ? 1000 : $radius->value;

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

xqd
@@ -58,8 +58,7 @@ Page({
           method: 'GET',
           data: {
             latitude: res.latitude,
-            longitude: res.longitude,
-            student_id: pt_student.id
+            longitude: res.longitude
           },
           success: res => {
             let validLocation = false;