|
@@ -349,7 +349,7 @@ class My extends Core
|
|
|
public function stat_month()
|
|
|
{
|
|
|
$type = Dever::input('type', 'shop');
|
|
|
- $table = 'cash/' . $shop;
|
|
|
+ $table = 'cash/' . $type;
|
|
|
|
|
|
$this->data['config'] = Dever::db('main/manage_config')->find();
|
|
|
$where['shop_id'] = $this->shop_id;
|
|
@@ -393,7 +393,7 @@ class My extends Core
|
|
|
{
|
|
|
$id = Dever::input('id');
|
|
|
$type = Dever::input('type', 'shop');
|
|
|
- $table = 'cash/' . $shop;
|
|
|
+ $table = 'cash/' . $type;
|
|
|
|
|
|
$where['id'] = $id;
|
|
|
$where['shop_id'] = $this->shop_id;
|
|
@@ -413,7 +413,7 @@ class My extends Core
|
|
|
{
|
|
|
$id = Dever::input('id');
|
|
|
$type = Dever::input('type', 'shop');
|
|
|
- $table = 'cash/' . $shop;
|
|
|
+ $table = 'cash/' . $type;
|
|
|
|
|
|
$where['id'] = $id;
|
|
|
$where['shop_id'] = $this->shop_id;
|