Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
13d6bd29
Commit
13d6bd29
authored
Feb 07, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build
parent
68d86a92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt
...moe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt
+9
-9
mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/GentleImage.kt
...o-gentleman/src/main/kotlin/demo/gentleman/GentleImage.kt
+1
-1
No files found.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt
View file @
13d6bd29
...
...
@@ -185,13 +185,13 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
coroutineContext
=
bot
.
coroutineContext
,
id
=
troopNum
.
groupCode
,
uin
=
troopNum
.
groupUin
,
initN
ame
=
troopNum
.
groupName
,
initA
nnouncement
=
troopNum
.
groupMemo
,
initA
llowMemberInvite
=
groupInfoResponse
.
allowMemberInvite
,
initC
onfessTalk
=
groupInfoResponse
.
confessTalk
,
initM
uteAll
=
troopNum
.
dwShutUpTimestamp
!=
0L
,
initA
utoApprove
=
groupInfoResponse
.
autoApprove
,
initA
nonymousChat
=
groupInfoResponse
.
allowAnonymousChat
,
_n
ame
=
troopNum
.
groupName
,
_a
nnouncement
=
troopNum
.
groupMemo
,
_a
llowMemberInvite
=
groupInfoResponse
.
allowMemberInvite
,
_c
onfessTalk
=
groupInfoResponse
.
confessTalk
,
_m
uteAll
=
troopNum
.
dwShutUpTimestamp
!=
0L
,
_a
utoApprove
=
groupInfoResponse
.
autoApprove
,
_a
nonymousChat
=
groupInfoResponse
.
allowAnonymousChat
,
members
=
contactList
)
toGet
[
group
]
=
contactList
...
...
@@ -260,8 +260,8 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
data
.
members
.
forEach
{
val
member
=
MemberImpl
(
qq
=
bot
.
QQ
(
it
.
memberUin
)
as
QQImpl
,
initG
roupCard
=
it
.
autoRemark
?:
it
.
nick
,
initS
pecialTitle
=
it
.
sSpecialTitle
?:
""
,
_g
roupCard
=
it
.
autoRemark
?:
it
.
nick
,
_s
pecialTitle
=
it
.
sSpecialTitle
?:
""
,
group
=
group
,
coroutineContext
=
group
.
coroutineContext
,
permission
=
when
{
...
...
mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/GentleImage.kt
View file @
13d6bd29
...
...
@@ -33,7 +33,7 @@ class GentleImage(val contact: Contact, val keyword: String) {
)
val
result
=
Json
.
plain
.
parse
(
Json
.
nonstrict
.
parse
(
Result
.
serializer
(),
Jsoup
.
connect
(
"https://api.lolicon.app/setu/?r18=$r18"
+
if
(
keyword
.
isNotBlank
())
"&keyword=$keyword&num=10"
else
""
)
.
ignoreContentType
(
true
)
...
...
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