rabin 2 years ago
parent
commit
dfc9b1abeb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/mshop/src/My.php

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

@@ -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;