Browse Source

商城,地址接口

lizhen_gitee 4 months ago
parent
commit
2884f0c3b4
3 changed files with 2 additions and 9 deletions
  1. 1 1
      addons/shopro/controller/user/Address.php
  2. 1 0
      application/config.php
  3. 0 8
      public/.htaccess

+ 1 - 1
addons/shopro/controller/user/Address.php

@@ -82,7 +82,7 @@ class Address extends Common
      *
      * @return \think\Response
      */
-    public function default()
+    public function getdefault()
     {
         $user = auth_user();
         $userAddress = UserAddressModel::default()->where('user_id', $user->id)->find();

+ 1 - 0
application/config.php

@@ -22,6 +22,7 @@ return [
     'app_debug'              => true,
     // 应用Trace
     'app_trace'              => Env::get('app.trace', false),
+    'app_trace'              => true,
     // 应用模式状态
     'app_status'             => '',
     // 是否支持多模块

+ 0 - 8
public/.htaccess

@@ -1,8 +0,0 @@
-location ~* (runtime|application)/{
-	return 403;
-}
-location / {
-	if (!-e $request_filename){
-		rewrite  ^(.*)$  /index.php?s=$1  last;   break;
-	}
-}