mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-09 16:05:37 +00:00
no message
This commit is contained in:
parent
c84111b6b9
commit
9e92c61fbf
@ -725,9 +725,9 @@ class File extends AbstractModel
|
|||||||
* @param int $permission
|
* @param int $permission
|
||||||
* @return File
|
* @return File
|
||||||
*/
|
*/
|
||||||
public static function permissionFind(int $id, $user, int $limit = 0, int &$permission = -1)
|
public static function permissionFind($id, $user, int $limit = 0, int &$permission = -1)
|
||||||
{
|
{
|
||||||
$file = File::find($id);
|
$file = File::find(intval($id));
|
||||||
if (empty($file)) {
|
if (empty($file)) {
|
||||||
throw new ApiException('文件不存在或已被删除');
|
throw new ApiException('文件不存在或已被删除');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -193,7 +193,11 @@ class UmengAlias extends AbstractModel
|
|||||||
$lists = $rows->take(5)->groupBy('platform'); // 每个会员最多推送5个别名
|
$lists = $rows->take(5)->groupBy('platform'); // 每个会员最多推送5个别名
|
||||||
foreach ($lists as $platform => $list) {
|
foreach ($lists as $platform => $list) {
|
||||||
$alias = $list->pluck('alias')->implode(',');
|
$alias = $list->pluck('alias')->implode(',');
|
||||||
self::pushMsgToAlias($alias, $platform, $array);
|
try {
|
||||||
|
self::pushMsgToAlias($alias, $platform, $array);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
info("[PushMsg] fail: " . $e->getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -445,7 +445,7 @@ class BotReceiveMsgTask extends AbstractTask
|
|||||||
if ($replyMsg) {
|
if ($replyMsg) {
|
||||||
$replyCommand = $this->extractCommand($replyMsg);
|
$replyCommand = $this->extractCommand($replyMsg);
|
||||||
if ($replyCommand) {
|
if ($replyCommand) {
|
||||||
$replyCommand = Base::cutStr($replyCommand, 200) . "\n\n ------------------ Reference above ------------------ \n\n";
|
$replyCommand = "<quoted>" . Base::cutStr($replyCommand, 2000) . "</quoted>\n\nThe content within the above <quoted> tags is a citation.\n\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$command = $replyCommand . $command;
|
$command = $replyCommand . $command;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user