dever 3 years ago
parent
commit
fd99fe0a8e
2 changed files with 3 additions and 3 deletions
  1. 2 2
      app/mshop/src/My.php
  2. 1 1
      app/shop/database/sell_stat_month.php

+ 2 - 2
app/mshop/src/My.php

@@ -315,7 +315,7 @@ class My extends Core
         
         $this->data['data'] = Dever::db('shop/sell_stat_month')->getAll($where);
 
-        $type = Dever::db('shop/sell_stat_month')->config['type'];
+        $type = Dever::db('shop/sell_stat_month')->config['config_type'];
 
         if ($this->data['data']) {
             foreach ($this->data['data'] as $k => $v) {
@@ -359,7 +359,7 @@ class My extends Core
         if (!$this->data['info']) {
             Dever::alert('账单不存在');
         }
-        $type = Dever::db('shop/sell_stat_month')->config['type'];
+        $type = Dever::db('shop/sell_stat_month')->config['config_type'];
 
         $this->data['info']['name'] = date('Y年m月',  $this->data['info']['month']);
         $this->data['info']['start'] = date('Y-m-01', $this->data['info']['month']);

+ 1 - 1
app/shop/database/sell_stat_month.php

@@ -14,7 +14,7 @@ return array
     'lang' => '销售月度对账单',
     'order' => 100,
     'menu' => false,
-    'type' => $type,
+    'config_type' => $type,
     # 数据结构
     'struct' => array
     (