Skip to content

Commit

Permalink
更新v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TKkk-iOSer committed Aug 25, 2018
1 parent 3e88d78 commit 4499952
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Binary file modified WeChat Plugin.alfredworkflow
Binary file not shown.
12 changes: 11 additions & 1 deletion src/userChatLog.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ def main(wf):
copyText = item['copyText']
qlurl = item['url']
srvId = str(item['srvId'])
wf.add_item(title=title, subtitle=subtitle, icon=icon, valid=True, largetext=title, quicklookurl=qlurl, copytext=copyText, arg=srvId)
titleLen = len(title)
lineNun = 70
if titleLen < lineNun:
largetext = title
else:
titleArray = []
for n in range(titleLen):
if n % lineNun == 0:
titleArray.append(title[n:n+lineNun])
largetext='\n'.join(titleArray)
wf.add_item(title=title, subtitle=subtitle, icon=icon, valid=True, largetext=largetext, quicklookurl=qlurl, copytext=copyText, arg=srvId)
else:
wf.add_item(title='找不到联系人…',subtitle='请重新输入')
except IOError:
Expand Down
2 changes: 1 addition & 1 deletion src/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0
2.0

0 comments on commit 4499952

Please sign in to comment.