Sfoglia il codice sorgente

切换门店时也要更新设备表数据

shizhongqi 9 mesi fa
parent
commit
2ad2e401d1

+ 3 - 0
app-ghs/controllers/AdminController.php

@@ -128,6 +128,9 @@ class AdminController extends BaseController
             } else {
                 $ghsDevice->pwdLoginTime = date('Y-m-d H:i:s');
             }
+            $ghsDevice->mainId = $this->mainId;
+            $ghsDevice->shopId = $this->shopId;
+            $ghsDevice->adminId = $this->adminId;
             $ghsDevice->save();
         }
 

+ 3 - 0
app-hd/controllers/AdminController.php

@@ -463,6 +463,9 @@ class AdminController extends BaseController
             } else {
                 $hdDevice->pwdLoginTime = date('Y-m-d H:i:s');
             }
+            $hdDevice->mainId = $this->mainId;
+            $hdDevice->shopId = $this->shopId;
+            $hdDevice->adminId = $this->adminId;
             $hdDevice->save();
         }