|
@@ -354,7 +354,8 @@ class My extends Core
|
|
|
$this->data['config'] = Dever::db('main/manage_config')->find();
|
|
|
$where['shop_id'] = $this->shop_id;
|
|
|
$shop = Dever::db('shop/info')->find($this->shop_id);
|
|
|
- $stat_type = Dever::db($table)->config['config_type'];
|
|
|
+ //$stat_type = Dever::db($table)->config['config_type'];
|
|
|
+ $stat_type = $shop['stat_type'];
|
|
|
$status = Dever::db($table)->config['config_status'];
|
|
|
|
|
|
$month = Dever::input('month');
|
|
@@ -419,9 +420,11 @@ class My extends Core
|
|
|
|
|
|
$where['id'] = $id;
|
|
|
$where['shop_id'] = $this->shop_id;
|
|
|
+ $shop = Dever::db('shop/info')->find($this->shop_id);
|
|
|
$this->data['config'] = Dever::db('main/manage_config')->find();
|
|
|
$this->data['info'] = Dever::db($table)->find($where);
|
|
|
- $stat_type = Dever::db($table)->config['config_type'];
|
|
|
+ //$stat_type = Dever::db($table)->config['config_type'];
|
|
|
+ $stat_type = $shop['stat_type'];
|
|
|
$status = Dever::db($table)->config['config_status'];
|
|
|
|
|
|
if (!$this->data['info']) {
|