fix:无methods_name时,默认调用tuijian方法

This commit is contained in:
liufumingren 2026-08-16 18:24:29 +08:00
parent 2330b6003f
commit 468b1ecfe9

View File

@ -7855,7 +7855,8 @@ class Wms extends Frontend
throw new \Exception("Invalid JSON: " . json_last_error_msg());
}
if (empty($decoded['method_name']) || empty($decoded['data'])) {
throw new \Exception("Missing method_name or data");
$decoded['method_name'] = "tuijian";
// throw new \Exception("Missing method_name or data");
}
$method_name = $decoded['method_name'];