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

@@ -3,10 +3,10 @@
     app.constant("config", {
     app.constant("config", {
          // server: 'http://q8.9026.com/',
          // server: 'http://q8.9026.com/',
          // imgServer: 'http://q8.9026.com/attachment/'
          // 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'));
 })(angular.module('app'));

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

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