update to build 418

This commit is contained in:
2021-09-10 11:24:32 +08:00
parent e2f49968b3
commit 2b4d308783
9 changed files with 124 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ class ConsoleApplication extends Application
{
private static $obj = null;
const VERSION_ID = 417;
const VERSION_ID = 418;
const VERSION = "2.5.2";
/**

View File

@@ -32,6 +32,7 @@ class ZMAtomic
self::$atomics["wait_msg_id"] = new Atomic(0);
self::$atomics["_event_id"] = new Atomic(0);
self::$atomics["server_is_stopped"] = new Atomic(0);
if (!defined("ZM_WORKER_NUM")) define("ZM_WORKER_NUM", 1);
for($i = 0; $i < ZM_WORKER_NUM; ++$i) {
self::$atomics["_#worker_".$i] = new Atomic(0);
}

View File

@@ -23,7 +23,7 @@ class MessageUtil
*/
public static function downloadCQImage($msg, $path = null) {
$path = $path ?? DataProvider::getDataFolder() . "images/";
if (!is_dir($path)) mkdir($path);
if (!is_dir($path)) @mkdir($path);
$path = realpath($path);
if ($path === false) {
Console::warning(zm_internal_errcode("E00059") . "指定的路径错误不存在!");