no message

This commit is contained in:
kuaifan 2023-07-28 14:47:34 +08:00
parent 34745fb3e5
commit 25c2a0d90e
3 changed files with 13 additions and 4 deletions

View File

@ -167,7 +167,7 @@ class User extends AbstractModel
if (!$this->bot) { if (!$this->bot) {
return 0; return 0;
} }
$key = "getBotOwner::" . $this->userid; $key = "userBotOwner::" . $this->userid;
return Cache::remember($key, now()->addMonth(), function() { return Cache::remember($key, now()->addMonth(), function() {
return intval(UserBot::whereBotId($this->userid)->value('userid')) ?: $this->userid; return intval(UserBot::whereBotId($this->userid)->value('userid')) ?: $this->userid;
}); });

View File

@ -3,7 +3,7 @@ version: '3'
services: services:
php: php:
container_name: "dootask-php-${APP_ID}" container_name: "dootask-php-${APP_ID}"
image: "kuaifan/php:swoole-8.0.rc12" image: "kuaifan/php:swoole-8.0.rc13"
shm_size: "2gb" shm_size: "2gb"
ulimits: ulimits:
core: core:

View File

@ -941,10 +941,19 @@ export default {
}, },
onClickEditor() { onClickEditor() {
this.$store.state.messengerSearchKey = {dialog: '', contacts: ''} this.clearSearchKey()
this.updateEmojiQuick(this.value) this.updateEmojiQuick(this.value)
}, },
clearSearchKey() {
if (this.$parent.$options.name === 'DialogWrapper' && (this.$store.state.messengerSearchKey.dialog != '' || this.$store.state.messengerSearchKey.contacts != '')) {
setTimeout(_ => {
this.$parent.onActive();
}, 10)
}
this.$store.state.messengerSearchKey = {dialog: '', contacts: ''}
},
focus() { focus() {
this.$nextTick(() => { this.$nextTick(() => {
if (this.quill) { if (this.quill) {
@ -1005,7 +1014,7 @@ export default {
onSend(type) { onSend(type) {
this.hidePopover('send') this.hidePopover('send')
this.rangeIndex = 0 this.rangeIndex = 0
this.$store.state.messengerSearchKey = {dialog: '', contacts: ''} this.clearSearchKey()
if (type) { if (type) {
this.$emit('on-send', null, type) this.$emit('on-send', null, type)
} else { } else {