Browse Source

feat:优化之前的逻辑,重新跑一遍之前对接的接口

景好勇win11 3 months ago
parent
commit
37af26f17e

+ 4 - 2
.env

@@ -26,8 +26,8 @@ DB_CONNECTION=mysql
 DB_HOST=192.168.110.85
 DB_PORT=3306
 DB_DATABASE=xiaoding_dev
-DB_USERNAME=xiaoding_dev
-DB_PASSWORD=SestHXbshKY2SBLG
+DB_USERNAME=root
+DB_PASSWORD=Php.123456
 
 SESSION_DRIVER=redis
 SESSION_LIFETIME=480
@@ -52,6 +52,8 @@ REDIS_CLIENT=phpredis
 REDIS_HOST=192.168.110.85
 REDIS_PASSWORD=5zWmCxsxsSPt6fH3
 REDIS_PORT=6379
+REDIS_DB=7
+REDIS_CACHE_DB=8
 
 MAIL_MAILER=log
 MAIL_HOST=127.0.0.1

+ 4 - 1
app/Http/Controllers/Client/UserController.php

@@ -3,6 +3,7 @@
 namespace App\Http\Controllers\Client;
 
 use App\DTOs\CoachApplicationDTO;
+use Illuminate\Support\Facades\Log;
 use App\Http\Controllers\Controller;
 use App\Services\Client\UserService;
 use Illuminate\Support\Facades\Auth;
@@ -351,7 +352,9 @@ class UserController extends Controller
         if ($result === null) {
             return $this->success(null, '暂无申请记录');
         }
-
+        Log::error('====================================================');
+        Log::error($result);
+        Log::error(json_encode($result));
         return $this->success($result, '获取成功');
     }
 }

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

@@ -135,7 +135,7 @@ class UploadController extends Controller
         ]);
 
         // 获取桶名
-        $bucket = 'te-qualification-image';
+        $bucket = 'te-qualifications-image';
 
         // 上传文件到指定的 S3 桶
         $path = $request->file('file')->store('uploads', $bucket);

+ 3 - 1
app/Models/CoachInfoRecord.php

@@ -2,6 +2,7 @@
 
 namespace App\Models;
 
+use App\Models\CoachUser;
 use App\Enums\TechnicianAuthStatus;
 use Illuminate\Database\Eloquent\SoftDeletes;
 use Slowlyo\OwlAdmin\Models\BaseModel as Model;
@@ -24,7 +25,8 @@ class CoachInfoRecord extends Model
      */
     protected $casts = [
         'portrait_images' => 'array',
-        'life_photos' => 'array'
+        'life_photos' => 'array',
+        'avatar' => 'array'
     ];
 
     /**

+ 2 - 2
config/filesystems.php

@@ -104,12 +104,12 @@ return [
             'throw' => false,
         ],
         // 技师资质
-        'te-qualification-image' => [
+        'te-qualifications-image' => [
             'driver' => 's3',
             'key' => env('AWS_ACCESS_KEY_ID'),
             'secret' => env('AWS_SECRET_ACCESS_KEY'),
             'region' => env('AWS_DEFAULT_REGION'),
-            'bucket' => 'te-qualification-image',
+            'bucket' => 'te-qualifications-image',
             'url' => env('AWS_URL'),
             'endpoint' => env('AWS_ENDPOINT'),
             'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),

+ 35 - 51
doc/系统设计/数据库设计/数据库备份/清理所有业务表数据.sql

@@ -1,65 +1,21 @@
--- Active: 1735094924500@@192.168.110.85@3306@xiaoding_test
+-- Active: 1735126617549@@192.168.110.85@3306@xiaoding_dev
 
 /**
  * 清空表数据
 */
 
+use xiaoding_dev;
 -- 禁用外键检查
 SET FOREIGN_KEY_CHECKS = 0;
+
+-- 代理相关表
 TRUNCATE TABLE agent_info_records;
 TRUNCATE TABLE agent_infos;
 TRUNCATE TABLE agent_project;
 TRUNCATE TABLE agent_project_cate;
 TRUNCATE TABLE agent_real_auth_records;
-TRUNCATE TABLE member_address;
-TRUNCATE TABLE member_social_accounts;
-TRUNCATE TABLE member_users;
-TRUNCATE TABLE order_comments;
-TRUNCATE TABLE order_dist_records;
-TRUNCATE TABLE order_exc_records;
-TRUNCATE TABLE order_grab_records;
-TRUNCATE TABLE order_records;
-TRUNCATE TABLE project_cate;
-TRUNCATE TABLE shop_auth_records;
-TRUNCATE TABLE shop_coach_services;
-TRUNCATE TABLE shop_infos;
-TRUNCATE TABLE shop_services;
-TRUNCATE TABLE user_feedbacks;
-TRUNCATE TABLE wallet_payment_records;
-TRUNCATE TABLE wallet_refund_records;
-TRUNCATE TABLE wallet_split_records;
-TRUNCATE TABLE wallet_trans_records;
-TRUNCATE TABLE wallet_withdraw_records;
-TRUNCATE TABLE agent_info_records;
-TRUNCATE TABLE agent_project;
-TRUNCATE TABLE agent_project_cate;
-TRUNCATE TABLE agent_real_auth_records;
-TRUNCATE TABLE coupon_info;
-TRUNCATE TABLE member_address;
-TRUNCATE TABLE member_bad_behaviors;
-TRUNCATE TABLE member_social_accounts;
-TRUNCATE TABLE member_users;
-TRUNCATE TABLE order_comments;
-TRUNCATE TABLE order_dist_records;
-TRUNCATE TABLE order_exc_records;
-TRUNCATE TABLE order_grab_records;
-TRUNCATE TABLE order_records;
-TRUNCATE TABLE project_cate;
-TRUNCATE TABLE shop_auth_records;
-TRUNCATE TABLE shop_coach_services;
-TRUNCATE TABLE shop_infos;
-TRUNCATE TABLE shop_services;
-TRUNCATE TABLE user_feedbacks;
-TRUNCATE TABLE wallet_payment_records;
-TRUNCATE TABLE wallet_refund_records;
-TRUNCATE TABLE wallet_split_records;
-TRUNCATE TABLE wallet_trans_records;
-TRUNCATE TABLE wallet_withdraw_records;
-TRUNCATE TABLE agent_info_records;
-TRUNCATE TABLE agent_infos;
-TRUNCATE TABLE agent_project;
-TRUNCATE TABLE agent_project_cate;
-TRUNCATE TABLE agent_real_auth_records;
+
+-- 教练相关表
 TRUNCATE TABLE coach_alerts;
 TRUNCATE TABLE coach_comment_tags;
 TRUNCATE TABLE coach_flow_orders;
@@ -74,18 +30,46 @@ TRUNCATE TABLE coach_schedules;
 TRUNCATE TABLE coach_scores;
 TRUNCATE TABLE coach_statistics;
 TRUNCATE TABLE coach_users;
+
+-- 优惠券相关表
 TRUNCATE TABLE coupon_info;
+
+-- 会员相关表
 TRUNCATE TABLE member_address;
 TRUNCATE TABLE member_bad_behaviors;
 TRUNCATE TABLE member_social_accounts;
 TRUNCATE TABLE member_users;
+
+-- 订单相关表
 TRUNCATE TABLE order_comments;
 TRUNCATE TABLE order_dist_records;
 TRUNCATE TABLE order_exc_records;
 TRUNCATE TABLE order_grab_records;
 TRUNCATE TABLE order_records;
+
+-- 项目相关表
 TRUNCATE TABLE project_cate;
-TRUNCATE TABLE setting_groups;;
+
+-- 商店相关表
+TRUNCATE TABLE shop_auth_records;
+TRUNCATE TABLE shop_coach_services;
+TRUNCATE TABLE shop_infos;
+TRUNCATE TABLE shop_services;
+
+-- 用户反馈表
+TRUNCATE TABLE user_feedbacks;
+
+-- 钱包相关表
+TRUNCATE TABLE wallet_payment_records;
+TRUNCATE TABLE wallet_refund_records;
+TRUNCATE TABLE wallet_split_records;
+TRUNCATE TABLE wallet_trans_records;
+TRUNCATE TABLE wallet_withdraw_records;
+
+-- 设置相关表
+TRUNCATE TABLE setting_groups;
+
+-- 启用外键检查
 SET FOREIGN_KEY_CHECKS = 1;
 
 

+ 1 - 1
doc/系统设计/数据库设计/物理模型/分析后台设计增加/04平台项目管理.sql

@@ -1,6 +1,6 @@
 
 /* 项目列表视图 */
-
+use xiaoding_dev;
 DROP VIEW IF EXISTS v_project_manage;
 
 CREATE VIEW v_project_manage AS