Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kw_wechat_robot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
kw_wechat_robot
Commits
96f71272
Commit
96f71272
authored
Jul 16, 2018
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改机器人相关代码
parent
35332f6e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
README
README
+0
-0
main.php
src/conf/main.php
+3
-3
Image.php
vendor/hanson/vbot/src/Message/Image.php
+9
-0
No files found.
README
View file @
96f71272
No preview for this file type
src/conf/main.php
View file @
96f71272
...
...
@@ -22,18 +22,18 @@ $options = [
* 下载配置项
*/
'download'
=>
[
'image'
=>
fals
e
,
'image'
=>
tru
e
,
'voice'
=>
false
,
'video'
=>
false
,
'emoticon'
=>
false
,
'file'
=>
fals
e
,
'file'
=>
tru
e
,
'emoticon_path'
=>
$path
.
'emoticons'
,
// 表情库路径(PS:表情库为过滤后不重复的表情文件夹)
],
/*
* 输出配置项
*/
'console'
=>
[
'output'
=>
FALSE
,
// 是否输出
'output'
=>
true
,
// 是否输出
'message'
=>
TRUE
,
// 是否输出接收消息 (若上面为 false 此处无效)
],
/*
...
...
vendor/hanson/vbot/src/Message/Image.php
View file @
96f71272
...
...
@@ -13,6 +13,15 @@ use Hanson\Vbot\Message\Traits\Multimedia;
use
Hanson\Vbot\Message\Traits\SendAble
;
use
Swoole\Mysql\Exception
;
if
(
!
function_exists
(
'exif_imagetype'
)
)
{
function
exif_imagetype
(
$filename
)
{
if
(
(
list
(
$width
,
$height
,
$type
,
$attr
)
=
getimagesize
(
$filename
)
)
!==
false
)
{
return
$type
;
}
return
false
;
}
}
class
Image
extends
Message
implements
MessageInterface
{
use
Multimedia
,
SendAble
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment