no message
This commit is contained in:
parent
6b95fffa70
commit
92e2652a69
@ -35,7 +35,7 @@ $oHttp->aData = [
|
||||
'type' => 'private'
|
||||
],
|
||||
'date' => 1610000000,
|
||||
"text" => "\/orderFind 2",
|
||||
"text" => "\/orderFindByUser 2",
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user