Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Dec 13, 2024
1 parent 6ac0744 commit 506e950
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Models/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,9 @@ public static function handleImageUrl($item)
* @param int $permission
* @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)) {
throw new ApiException('文件不存在或已被删除');
}
Expand Down
6 changes: 5 additions & 1 deletion app/Models/UmengAlias.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@ public static function pushMsgToUserid($userid, $array)
$lists = $rows->take(5)->groupBy('platform'); // 每个会员最多推送5个别名
foreach ($lists as $platform => $list) {
$alias = $list->pluck('alias')->implode(',');
self::pushMsgToAlias($alias, $platform, $array);
try {
self::pushMsgToAlias($alias, $platform, $array);
} catch (\Exception $e) {
info("[PushMsg] fail: " . $e->getMessage());
}
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion app/Tasks/BotReceiveMsgTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ private function botWebhookBusiness(string $command, WebSocketDialogMsg $msg, Us
if ($replyMsg) {
$replyCommand = $this->extractCommand($replyMsg);
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;
Expand Down

0 comments on commit 506e950

Please sign in to comment.