no message
This commit is contained in:
parent
a78674b4fe
commit
32a9271299
@ -35,7 +35,7 @@ $oHttp->aData = [
|
||||
'type' => 'private'
|
||||
],
|
||||
'date' => 1610000000,
|
||||
"text" => "\/duckList",
|
||||
"text" => "\/duckFind jp03",
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
@ -255,6 +255,20 @@ final class HookController
|
||||
|
||||
}
|
||||
|
||||
// 查找duck
|
||||
// /duckFind jp01
|
||||
if (strpos($sText, '/duckFind') === 0 || strpos($sText, '\/duckFind') === 0) {
|
||||
|
||||
list($sCmd, $sCode) = explode(" ", $sText, 2);
|
||||
|
||||
$aData = Ducks::where('code', $sCode)->get()->toArray();
|
||||
|
||||
$this->sendMessage(json_encode($aData, JSON_PRETTY_PRINT));
|
||||
|
||||
Http::response(200, 'ok');
|
||||
|
||||
}
|
||||
|
||||
// 添加zhuanfa
|
||||
// /zhuanfaAdd jp01
|
||||
if (strpos($sText, '/zhuanfaAdd') === 0 || strpos($sText, '\/zhuanfaAdd') === 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user