wugg 7 months ago
parent
commit
a53b67c2af
2 changed files with 1 additions and 2 deletions
  1. 0 1
      app/command/makeModel.php
  2. 1 1
      app/user/model/Headquarters.php

+ 0 - 1
app/command/makeModel.php

@@ -27,7 +27,6 @@ class makeModel extends Command
         $tables = Db::query("SELECT TABLE_NAME  as 'name'
         from information_schema.tables
         WHERE TABLE_SCHEMA = :dataBase and TABLE_TYPE='BASE TABLE'", ['dataBase' => self::$schema]);
-        echo Db::getLastSql();
         foreach ($tables as $key => $value) {
 
             foreach ($value as $item) {

+ 1 - 1
app/user/model/Headquarters.php

@@ -149,7 +149,7 @@ use think\Exception;use think\Model;class Headquarters extends Base
             $result->updater=$object->updater;
             $result->updaterid=$object->updaterid;
             $busup=$result->save();
-            if($busup) throw new \Exception("业务公司同步失败");
+            if(!$busup) throw new \Exception("业务公司同步失败");
             self::createInfo($result,1);
         }
     }