no message

This commit is contained in:
hellcat 2025-04-02 16:06:55 +08:00
parent 6b95fffa70
commit 92e2652a69
2 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@ $oHttp->aData = [
'type' => 'private'
],
'date' => 1610000000,
"text" => "\/orderFind 2",
"text" => "\/orderFindByUser 2",
]
];

View File

@ -131,7 +131,7 @@ final class HookController
}
// 查找订单
if (strpos($sText, '/orderFind') === 0 || strpos($sText, '\/orderFind') === 0) {
if (strpos($sText, '/orderFindByUser') === 0 || strpos($sText, '\/orderFindByUser') === 0) {
list(, $iUserId) = explode(" ", $sText, 2);
@ -142,12 +142,13 @@ final class HookController
foreach ($aOrder as $k => $v) {
$v['create_time'] = date("Y-m-d H:i:m", $v['create_time']);
$v['update_time'] = date("Y-m-d H:i:m", $v['update_time']);
$v['product_content'] = json_decode($v['product_content']);
$aOrderNew[] = $v;
}
} else {
$aOrderNew = ["not have id" => $iUserId];
}
$this->sendMessage(json_encode($aOrderNew, JSON_PRETTY_PRINT));
Http::response(200, 'ok');