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

fix: Avoid the same filename under multithreading #933

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

JS00000
Copy link
Contributor

@JS00000 JS00000 commented Apr 23, 2023

多线程同时创建一个语音文件的话会出现相同文件名的情况。

@lanvent lanvent merged commit dca5c05 into zhayujie:master Apr 23, 2023
@lanvent
Copy link
Collaborator

lanvent commented Apr 23, 2023

666

congxuma added a commit to tudou2/chatgpt-on-wechat that referenced this pull request Apr 24, 2023
commit d7c251a
Author: Jianglang <lanvent@qq.com>
Date:   Mon Apr 24 02:21:44 2023 +0800

    Update README.md

commit d03229a
Author: lanvent <lanvent@qq.com>
Date:   Mon Apr 24 02:06:34 2023 +0800

    Update ISSUE_TEMPLATE

commit 243482e
Author: lanvent <lanvent@qq.com>
Date:   Mon Apr 24 02:02:16 2023 +0800

    Update ISSUE_TEMPLATE

commit 79d10be
Author: lanvent <lanvent@qq.com>
Date:   Mon Apr 24 00:38:34 2023 +0800

    fix(wechatmp): add clear_quota_lock to ensure thread safe

commit dca5c05
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Sun Apr 23 23:56:32 2023 +0800

    fix: Avoid the same filename under multithreading (zhayujie#933)

commit d6a4b35
Author: lanvent <lanvent@qq.com>
Date:   Sun Apr 23 15:07:38 2023 +0800

    chore: add numpy version constraint

commit 8205d25
Author: lanvent <lanvent@qq.com>
Date:   Sun Apr 23 15:01:10 2023 +0800

    fix(Dockerfile): add extra-index-url to pip install command

commit 9a99cae
Author: lanvent <lanvent@qq.com>
Date:   Sun Apr 23 05:12:50 2023 +0800

    chore: add fetch_translate method to Bridge class

commit 1e09bd0
Author: lanvent <lanvent@qq.com>
Date:   Sun Apr 23 04:22:37 2023 +0800

    feat(azure_voice): add language detection, support mulitple languages

commit cae12eb
Author: lanvent <lanvent@qq.com>
Date:   Sun Apr 23 03:51:09 2023 +0800

    feat: add baidu translate api

commit 8bb36e0
Merge: a52f54d d183204
Author: zhayujie <yjzha1996@163.com>
Date:   Sat Apr 22 18:04:04 2023 +0800

    Merge pull request zhayujie#926 from zhayujie/dev

    docs: update README

commit d183204
Author: zhayujie <yjzha1996@163.com>
Date:   Sat Apr 22 18:02:12 2023 +0800

    docs: update README.md

commit 4a22ae6
Author: zhayujie <yjzha1996@163.com>
Date:   Sat Apr 22 17:53:43 2023 +0800

    docs: update README.md

commit a52f54d
Author: lanvent <lanvent@qq.com>
Date:   Sat Apr 22 12:15:56 2023 +0800

    docs(wechatmp): Update README.md

commit 618c94e
Author: lanvent <lanvent@qq.com>
Date:   Sat Apr 22 12:01:29 2023 +0800

    formatting: run precommit on all files

commit eaf4e91
Author: lanvent <lanvent@qq.com>
Date:   Sat Apr 22 11:59:12 2023 +0800

    style(linting): increase max-line-length to 176

    The max-line-length configuration was increased to 176 in both .flake8 and pyproject.toml files to allow for longer lines of code.

commit 4af2c7f
Author: lanvent <lanvent@qq.com>
Date:   Sat Apr 22 11:39:59 2023 +0800

    fix: escape regex pattern

commit 361f599
Author: lanvent <lanvent@qq.com>
Date:   Sat Apr 22 11:29:41 2023 +0800

    fix: escape regex patterns when matching name

commit ffe4ea5
Author: Jianglang <lanvent@qq.com>
Date:   Sat Apr 22 11:12:30 2023 +0800

    Update README.md

commit 9461e3e
Merge: c60f051 7c85c6f
Author: Jianglang <lanvent@qq.com>
Date:   Sat Apr 22 11:08:08 2023 +0800

    Merge pull request zhayujie#912 from zhayujie/wechatmp

    公众号功能优化:支持图片输入、消息加密模式、用户体验优化

commit 7c85c6f
Author: lanvent <lanvent@qq.com>
Date:   Sat Apr 22 02:29:50 2023 +0800

    feat(wechatmp): add support for message encryption

    - Add support for message encryption in WeChat MP channel.
    - Add `wechatmp_aes_key` configuration item to `config.json`.

commit b5df6fa
Author: lanvent <lanvent@qq.com>
Date:   Sat Apr 22 01:30:21 2023 +0800

    feat: verify server when receive message in wechatmp

commit 7cefe2d
Author: lanvent <lanvent@qq.com>
Date:   Fri Apr 21 21:03:38 2023 +0800

    fix: split long text messages into multiple parts in wechatmp_service

commit 350633b
Merge: cca49da 1cd6a71
Author: lanvent <lanvent@qq.com>
Date:   Fri Apr 21 20:46:16 2023 +0800

    Merge Purll Request zhayujie#920 into wechatmp

commit 1cd6a71
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Fri Apr 21 18:31:20 2023 +0800

    fix the bug of pytts in linux

commit 3a08b00
Merge: 650e0b4 cca49da
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Fri Apr 21 16:20:57 2023 +0800

    Merge remote-tracking branch 'origin/wechatmp' into wechatmp

commit cca49da
Author: lanvent <lanvent@qq.com>
Date:   Fri Apr 21 13:49:51 2023 +0800

    fix: fix subscribe_msg

commit f6d370a
Author: lanvent <lanvent@qq.com>
Date:   Fri Apr 21 13:43:01 2023 +0800

    fix: check if event is subscribe

commit c9131b3
Author: lanvent <lanvent@qq.com>
Date:   Fri Apr 21 13:41:21 2023 +0800

    feat: add clear_quota_v2 method to clear API quota when it's used up

commit e44161b
Author: lanvent <lanvent@qq.com>
Date:   Fri Apr 21 03:28:31 2023 +0800

    fix: voice_reply_voice not work

commit a26189f
Author: lanvent <lanvent@qq.com>
Date:   Fri Apr 21 03:04:50 2023 +0800

    chore: remove passive_reply_message.py

commit 89dd8a1
Author: lanvent <lanvent@qq.com>
Date:   Fri Apr 21 02:47:33 2023 +0800

    refactor(wechatmp): use wechatpy to handle wechatmp messages
    feat(wechatmp): add support for image and voice replies

commit 650e0b4
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Fri Apr 21 02:16:13 2023 +0800

    wechatmp: adjust log

commit c60f051
Author: lanvent <lanvent@qq.com>
Date:   Thu Apr 20 23:22:08 2023 +0800

    refactor(audio_convert.py): remove redundant functions

commit 0f8dc91
Author: lanvent <lanvent@qq.com>
Date:   Thu Apr 20 23:13:07 2023 +0800

    fix: add check for empty command and return error message if so

commit b58feb5
Merge: 0a7d6e4 71c8043
Author: lanvent <lanvent@qq.com>
Date:   Thu Apr 20 23:06:17 2023 +0800

    Merge Pull Request zhayujie#904 into master

commit 71c8043
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Thu Apr 20 12:35:54 2023 +0800

    update README

commit 40264bc
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Thu Apr 20 12:03:48 2023 +0800

    fix: delete permanent media

commit a777231
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Thu Apr 20 10:26:58 2023 +0800

    feat: wechatmp channel support voice/image reply

commit 3420902
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Thu Apr 20 09:04:42 2023 +0800

    fix: pytts second round not work

commit 1e58c1a
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Thu Apr 20 04:35:06 2023 +0800

    fix: wechatmp channel now do not need client

commit 8cea022
Merge: f32f8aa 0a7d6e4
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Thu Apr 20 03:41:37 2023 +0800

    Merge branch 'master' into wechatmp

commit f32f8aa
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Thu Apr 20 03:18:21 2023 +0800

    Update readme, and make the structure more clear

commit df4c1f0
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Wed Apr 19 01:56:25 2023 +0800

    wechatmp: logic simplification

commit 9a86a67
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Wed Apr 19 01:54:20 2023 +0800

    update readme

commit 68361cd
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Tue Apr 18 03:08:18 2023 +0800

    wechatmp_service: image and voice reply supported

commit e060b6f
Merge: 7fb4f72 e8aae27
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Mon Apr 17 20:11:41 2023 +0800

    Merge branch 'master' into wechatmp

commit 7fb4f72
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Wed Apr 12 05:52:26 2023 +0800

    update wechatmp README

commit d4fc322
Merge: 8fa3da9 28bd917
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Wed Apr 12 05:43:05 2023 +0800

    Merge branch 'master' into wechatmp

commit 8fa3da9
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Wed Apr 12 05:41:48 2023 +0800

    wechatmp: voice input support

commit 68ef5aa
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Wed Apr 12 05:35:31 2023 +0800

    ctrl+c exit

commit 15e6cf8
Merge: f687b2b ee91c86
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Mon Apr 10 18:57:01 2023 +0800

    Merge branch 'master' into wechatmp

commit f687b2b
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Sun Apr 9 18:32:09 2023 +0800

    remove _success_callback

commit 8ee7a48
Author: JS00000 <js00000000000000000@gmail.com>
Date:   Sun Apr 9 18:00:34 2023 +0800

    fix: wechatmp's deadloop when reply is None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants