Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💦 关于插件开发建议 💦 #178

Open
lkeme opened this issue Aug 21, 2022 · 7 comments
Open

💦 关于插件开发建议 💦 #178

lkeme opened this issue Aug 21, 2022 · 7 comments
Labels
question Further information is requested

Comments

@lkeme
Copy link
Owner

lkeme commented Aug 21, 2022

目前版本更新,部分插件暂未迁移,陆续开发中。

提供基础插件支持,功能组件列表

如有受众范围较大的需求,可以提出建议(需带详情),视情况采纳,添加到开发计划中。

当然也欢迎动手能力强的朋友,开发插件后提交pr,分享您的插件。

@lkeme lkeme changed the title 💦 [收集] 关于插件开发建议 💦 关于插件开发建议 💦 Aug 21, 2022
@2314933036
Copy link

1.红包抽奖:最小电池数量,单位时间内最多参与次数,时间段开启,放弃比例
2.没想好

@heishanmao
Copy link

可以加个bark推送嘛? 虽然我还是没有用docker 配置起来

@lkeme
Copy link
Owner Author

lkeme commented Jan 8, 2023

可以加个bark推送嘛? 虽然我还是没有用docker 配置起来

需求量比较小,待定。

@heishanmao
Copy link

不太熟悉 pull request 改了下bark的推送 获取一个token 就可以了吧

/**
 * Bark Public 推送
 * @doc https://github.com/Finb/Bark
 * @param array $info
 */
protected function bark(array $info): void
{
    Log::info('使用bark推送消息');
    $url = 'https://api.day.app/' . getConf('notify_bark.token');

    $payload = [
        'msgtype' => 'markdown',
        'markdown' => [
            'content' => "{$info['title']} \n\n{$info['content']}"
        ]
    ];
    $raw = Request::put('other', $url, $payload, $this->headers);
    $de_raw = json_decode($raw, true);
    if ($de_raw['message'] == 'success') {
        Log::notice("推送消息成功: {$de_raw['errmsg']}");
    } else {
        Log::warning("推送消息失败: $raw");
    }
}

@lkeme
Copy link
Owner Author

lkeme commented Jan 10, 2023

不太熟悉 pull request 改了下bark的推送 获取一个token 就可以了吧

/**
 * Bark Public 推送
 * @doc https://github.com/Finb/Bark
 * @param array $info
 */
protected function bark(array $info): void
{
    Log::info('使用bark推送消息');
    $url = 'https://api.day.app/' . getConf('notify_bark.token');

    $payload = [
        'msgtype' => 'markdown',
        'markdown' => [
            'content' => "{$info['title']} \n\n{$info['content']}"
        ]
    ];
    $raw = Request::put('other', $url, $payload, $this->headers);
    $de_raw = json_decode($raw, true);
    if ($de_raw['message'] == 'success') {
        Log::notice("推送消息成功: {$de_raw['errmsg']}");
    } else {
        Log::warning("推送消息失败: $raw");
    }
}

commit#32c5a3e

@lkeme lkeme added documentation Improvements or additions to documentation question Further information is requested and removed documentation Improvements or additions to documentation labels Aug 1, 2023
@lkeme lkeme pinned this issue Aug 1, 2023
@sorrow233
Copy link

大会员每天可以领取10经验,这个有希望加上吗大佬

@lkeme
Copy link
Owner Author

lkeme commented Jun 27, 2024

大会员每天可以领取10经验,这个有希望加上吗大佬

具体地址或者位置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants