rabin 1 year ago
parent
commit
5453a039e5
2 changed files with 109 additions and 0 deletions
  1. 20 0
      src/dai/seller/lib/Manage.php
  2. 89 0
      src/dai/seller/table/order_error.php

+ 20 - 0
src/dai/seller/lib/Manage.php

@@ -610,4 +610,24 @@ class Manage extends Auth
         $num = ($id + 1000000000);
         return md5(\Dever\Helper\Str::idtostr($num));
     }
+
+    # 展示订单号
+    public function showOrderListOrder($seller_order_num, $order_num)
+    {
+        if (!$order_num) {
+            $order_num = '-';
+        }
+        return '商户订单号:' . $seller_order_num . '<br />系统订单号:' . $order_num;
+    }
+
+    # 展示订单商品
+    public function showOrderListGoods($account, $cate_id, $goods_id, $sku_id, $cash, $price, $buy_price, $num)
+    {
+        $goods = Dever::db('info', 'goods')->find($goods_id);
+
+        $result = '账号:' . $account . '<br />';
+        $result .= '商品:' . $goods['name'] . '<br />';
+        $result .= '面值:' . $cash . ' 销售价:' . $price . ' 成本价:' . $buy_price;
+        return $result;
+    }
 }

+ 89 - 0
src/dai/seller/table/order_error.php

@@ -0,0 +1,89 @@
+<?php
+return array
+(
+    'name' => '商户订单渠道错误表',
+    'cdate' => 'mtime',//mtime保存为微秒,wtime保存为毫秒,默认是秒 暂时不支持,后续升级
+    'order' => 'cdate desc',
+    //'store' => 'log1',
+    'struct' => array
+    (
+        'order_num' => array
+        (
+            'name'      => '系统订单号',
+            'type'      => 'varchar(100)',
+        ),
+
+        'buy_price'      => array
+        (
+            'type'      => 'decimal(11,2)',
+            'name'      => '采购金额',
+            'fields'    => true,
+        ),
+
+        'channel_id' => array
+        (
+            'name'      => '渠道',
+            'type'      => 'int(11)',
+            'value'     => 'channel/info',
+        ),
+
+        'channel_goods_id' => array
+        (
+            'name'      => '渠道商品id',
+            'type'      => 'int(11)',
+        ),
+
+        'channel_goods_discount' => array
+        (
+            'name'      => '渠道商品折扣',
+            'type'      => 'int(11)',
+        ),
+
+        'channel_order_date' => array
+        (
+            'name'      => '渠道下单时间',
+            'type'      => 'int(11)',
+        ),
+
+        'channel_order_num' => array
+        (
+            'name'      => '渠道订单号',
+            'type'      => 'varchar(100)',
+        ),
+
+        'channel_request' => array
+        (
+            'name'      => '渠道请求数据',
+            'type'      => 'varchar(2000)',
+            'fields'    => true,
+            'base64'    => true,
+        ),
+
+        'channel_response' => array
+        (
+            'name'      => '渠道响应数据',
+            'type'      => 'varchar(2000)',
+            'fields'    => true,
+            'base64'    => true,
+        ),
+
+        'channel_callback' => array
+        (
+            'name'      => '渠道回调数据',
+            'type'      => 'varchar(2000)',
+            'fields'    => true,
+            'base64'    => true,
+        ),
+
+        'channel_callback_date' => array
+        (
+            'name'      => '渠道回调时间',
+            'type'      => 'int(11)',
+        ),
+    ),
+
+    'index' => array
+    (
+        'search' => 'order_num',
+    ),
+);