Mike 7 년 전
부모
커밋
ad03805294
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 4
      miaomiao/www/js/config/config.js
  2. 1 1
      server/app/Http/Controllers/Api/V1/Controller.php

+ 4 - 4
miaomiao/www/js/config/config.js

xqd
@@ -3,10 +3,10 @@
     app.constant("config", {
          // server: 'http://q8.9026.com/',
          // imgServer: 'http://q8.9026.com/attachment/'
-        //server: 'http://localhost:8092/',
-        //imgServer: 'http://localhost:8092/attachment/'
+        server: 'http://localhost:8092/',
+        imgServer: 'http://localhost:8092/attachment/'
 
-        server: 'http://miao.beiyuesi.com/',
-        imgServer: 'http://miao.beiyuesi.com/attachment/'
+        // server: 'http://miao.beiyuesi.com/',
+        // imgServer: 'http://miao.beiyuesi.com/attachment/'
     });
 })(angular.module('app'));

+ 1 - 1
server/app/Http/Controllers/Api/V1/Controller.php

xqd
@@ -30,7 +30,7 @@ class Controller extends BaseController
         $this->middleware('auth:api', [
             'except' => [
                 'upload', 'getCode', 'reset', 'login', 'get', 'register', 'alipayNotify', 'wechatpayNotify',
-                'get', 'area', 'attachment.download', 'attachment.upload', 'test','index/home','attachment/download/*'
+                'get', 'area', 'download',  'test'
             ]
         ]);