LD 6 yıl önce
ebeveyn
işleme
5e8b45c4aa

+ 1 - 1
app/Http/Controllers/MeasureMonitorController.php

@@ -9,7 +9,7 @@ use App\Package;
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
 use Illuminate\Support\Facades\Gate;
-require_once 'api-speech/AipSpeech.php';
+require_once '../../library/baidu-api-speech/AipSpeech.php';
 class MeasureMonitorController extends Controller
 {
 

+ 3 - 1
app/Http/Controllers/api/WxController.php → app/Http/Controllers/api/thirdPart/weixin/WxController.php

@@ -1,7 +1,9 @@
 <?php
 
 namespace App\Http\Controllers\Api;
-
+/**
+ * TODO::接口路径(微信线上)的需要修改,因为route文件和路径都改成了新的标准
+ */
 use App\Unit;
 use App\User;
 use App\Waybill;

+ 0 - 0
app/Http/Controllers/api/WxLoginController.php → app/Http/Controllers/api/thirdPart/weixin/WxLoginController.php


+ 4 - 0
app/Providers/RouteServiceProvider.php

@@ -84,5 +84,9 @@ class RouteServiceProvider extends ServiceProvider
             ->middleware('api')
             ->namespace('App\Http\Controllers\Api\thirdPart\weight')
             ->group(base_path('routes/api/thirdPart/weight.php'));
+        Route::prefix('api/thirdPart/weixin')
+            ->middleware(['api','auth:api'])
+            ->namespace('App\Http\Controllers\Api\thirdPart\weixin')
+            ->group(base_path('routes/api/thirdPart/weixin.php'));
     }
 }

+ 0 - 0
app/Http/Controllers/api-speech/AipSpeech.php → app/library/baidu-api-speech/AipSpeech.php


+ 0 - 0
app/Http/Controllers/api-speech/lib/2d7933431e76f4dd9eeb4e604e68bcb5 → app/library/baidu-api-speech/lib/2d7933431e76f4dd9eeb4e604e68bcb5


+ 0 - 0
app/Http/Controllers/api-speech/lib/AipBCEUtil.php → app/library/baidu-api-speech/lib/AipBCEUtil.php


+ 0 - 0
app/Http/Controllers/api-speech/lib/AipBase.php → app/library/baidu-api-speech/lib/AipBase.php


+ 0 - 0
app/Http/Controllers/api-speech/lib/AipHttpClient.php → app/library/baidu-api-speech/lib/AipHttpClient.php


+ 0 - 0
app/Http/Controllers/api-speech/lib/AipImageUtil.php → app/library/baidu-api-speech/lib/AipImageUtil.php


+ 0 - 6
routes/api.php

@@ -20,9 +20,3 @@ Route::post('rejected/jianshang/send', "Api\jianshang\RejectedController@fakingR
 
 Route::any('wx/login', "Api\WxLoginController@login");//微信小程序登录验证
 
-
-Route::group(['middleware'=>'auth:api'],function(){
-    Route::get('wx/waybill', "Api\WxController@index");//微信小程序数据返回
-    Route::post('wx/waybill/show', "Api\WxController@show");//微信小程序数据返回
-    Route::post('wx/waybill/update', "Api\WxController@update");//微信小程序数据修改
-});

+ 16 - 0
routes/api/thirdPart/weixin.php

@@ -0,0 +1,16 @@
+<?php
+
+use Illuminate\Http\Request;
+
+
+
+/*
+文件地址前缀:/api/thirdPart/weight
+*/
+
+Route::group(['middleware'=>'auth:api'],function(){
+    Route::get('wx/waybill', "Api\WxController@index");//微信小程序数据返回
+    Route::post('wx/waybill/show', "Api\WxController@show");//微信小程序数据返回
+    Route::post('wx/waybill/update', "Api\WxController@update");//微信小程序数据修改
+});
+