rabin 9 månader sedan
förälder
incheckning
74453a70f5

+ 4 - 4
src/dai/seller/api/Task.php

@@ -241,11 +241,11 @@ class Task
     # 插入测试数据
     public function test()
     {
-        $order = Dever::db('order', 'seller')->select([]);
+        $order = Dever::db('order_bak', 'seller')->select([]);
         foreach ($order as $k => $v) {
-            $v['cdate'] = time();
-            Dever::db('order_log', 'seller')->insert($v);
+            //$v['cdate'] = time();
+            Dever::db('order_log1', 'seller')->insert($v);
         }
-        $this->test();
+        //$this->test();
     }
 }

+ 2 - 2
src/dai/seller/table/manage/order_log_list.php

@@ -2,8 +2,8 @@
 $status = Dever::input('search')['status'] ?? array('>=', 10);
 return array
 (
-    //'source' => 'seller/order_log',
-    'source' => 'seller/order_bak',
+    'source' => 'seller/order_log',
+    //'source' => 'seller/order_bak',
     'list' => array
     (
         //'expand' => 'seller/manage.showOrderExpand',

+ 4 - 0
src/dai/seller/table/order_log1.php

@@ -0,0 +1,4 @@
+<?php
+$config = include('order.php');
+$config['store'] = 'log1';
+return $config;