dever 3 年之前
父节点
当前提交
c1f0f5db3f
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. 1 1
      app/cash/database/order.php
  2. 7 0
      app/shop/lib/Manage.php

+ 1 - 1
app/cash/database/order.php

@@ -191,7 +191,7 @@ return array
             'match'     => 'is_string',
             'update'    => 'text',
             'search'    => 'fulltext',
-            'list'      => true,
+            'list'      => 'Dever::load("shop/lib/manage.getOrderUrl", "{source_order_id}", "{source_order_num}")',
         ),
 
         'refund_id'      => array

+ 7 - 0
app/shop/lib/Manage.php

@@ -6,6 +6,13 @@ use Dever;
 
 class Manage
 {
+    public function getOrderUrl($order_id, $order_num)
+    {
+        $url = Dever::load('manage/database')->url('list', $order_id, 'buy_order_goods&project=shop&order_id='.$order_id.'&page_type=1');
+
+        $url = '<a href="'.$url.'">'.$order_num.'</a>';
+        return $url;
+    }
     public function showCash($cash, $p_cash = 0)
     {
         if (!$cash) {