Prechádzať zdrojové kódy

feat(lakala): 优化订单搜索和快递信息管理功能

- 合并多个搜索输入框为统一搜索框,支持选择不同搜索类型
- 在订单列表中整合显示所有相关编号信息
- 增加快递公司编号显示及纠正功能
- 新增快递公司选择弹窗用于信息修正
- 添加获取快递公司列表的接口调用
- 实现更新快递公司信息的后端接口
- 支持通过微信交易号进行订单搜索
- 优化金额显示格式,增加人民币符号
- 更新路由配置以支持新的快递信息更新接口
- 引入LakalaWechatPaymentEntity实体类处理数据更新
- 创建DeliveryController提供快递公司列表接口
- 新建wechat模块的管理员路由文件
- 调整前端样式以适应新的订单编号展示方式
- 增加express_company字段到订单查询结果中
runphp 4 mesiacov pred
rodič
commit
65c599b559
3 zmenil súbory, kde vykonal 26 pridanie a 1 odobranie
  1. 10 0
      route/admin.php
  2. 1 1
      route/api.php
  3. 15 0
      src/Controller/DeliveryController.php

+ 10 - 0
route/admin.php

@@ -0,0 +1,10 @@
+<?php
+declare(strict_types=1);
+
+// API路由
+// 路由前缀: /admin/wechat
+
+use SixShop\Wechat\Controller\DeliveryController;
+use think\facade\Route;
+
+Route::resource('delivery', DeliveryController::class)->only(['index']);

+ 1 - 1
route/api.php

@@ -10,4 +10,4 @@ use think\facade\Route;
 Route::group('user', function () {
     Route::get('phone_number', [UserController::class, 'phoneNumber']);
     Route::get('session', [UserController::class, 'session']);
-})->middleware(['auth']);
+})->middleware(['auth']);

+ 15 - 0
src/Controller/DeliveryController.php

@@ -0,0 +1,15 @@
+<?php
+declare(strict_types=1);
+namespace SixShop\Wechat\Controller;
+
+use SixShop\Wechat\Entity\WechatDeliveryEntity;
+use think\Response;
+use function SixShop\Core\page_response;
+
+class DeliveryController
+{
+    public function index(WechatDeliveryEntity $wechatDeliveryEntity):Response
+    {
+        return page_response($wechatDeliveryEntity->paginate(100));
+    }
+}