Commit 71bceb04 by 王召彬

修改 !App::$isInTest

parent c5b063d4
...@@ -96,7 +96,7 @@ class CommonEntity extends Model ...@@ -96,7 +96,7 @@ class CommonEntity extends Model
$res = new \ReflectionClass(static::class); $res = new \ReflectionClass(static::class);
self::$commentString = $res->getDocComment(); self::$commentString = $res->getDocComment();
if ( false !== strpos(self::$commentString,"{split}") && App::$isInTest) { if ( false !== strpos(self::$commentString,"{split}") && !App::$isInTest) {
$dbNum = self::getDbNum(); $dbNum = self::getDbNum();
$tableName = self::getTableName().'_'.$dbNum; $tableName = self::getTableName().'_'.$dbNum;
self::setTableName($tableName); self::setTableName($tableName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment