Skip to content

Commit

Permalink
fix: 修复图片发送问题 (#35)
Browse files Browse the repository at this point in the history
* fix: 修复图片发送问题

* Update puppet-oa.ts
  • Loading branch information
leochen-g authored Jan 17, 2024
1 parent 95cebbc commit 4bbd9a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/puppet-oa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,12 @@ class PuppetOA extends PUPPET.Puppet {
file : FileBox,
): Promise<string> {
let msgtype: OAMediaType
switch (file.mimeType) {
const mimeType = file.mediaType
switch (mimeType) {
case 'image/jpeg':
case 'image/jpg':
case 'image/png':
case 'image/gif':
msgtype = 'image'
break
case 'audio/amr':
Expand Down

0 comments on commit 4bbd9a7

Please sign in to comment.