Skip to content

Commit

Permalink
3.0.12,新增移动端地址
Browse files Browse the repository at this point in the history
  • Loading branch information
lunzhiPenxil committed Feb 4, 2025
1 parent add88cf commit 8a05dee
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions OlivaDiceOdyssey/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"namespace" : "OlivaDiceOdyssey",
"message_mode" : "old_string",
"info" : "本模块为OlivaDice的高阶模块,提供了一些涉及第三方合作的功能,它们或许是调用了第三方数据库,要么是涉及版权授权,又或者是单纯的过于依赖网络,总之这些功能由于第三方的参与很可能无法由插件开发者保证可靠性,但仍然很强大。例如魔都模组功能。",
"version" : "3.0.11",
"svn" : 12,
"version" : "3.0.12",
"svn" : 13,
"compatible_svn" : 101,
"priority" : 20040,
"support" : [
Expand Down
1 change: 1 addition & 0 deletions OlivaDiceOdyssey/cnmodsData.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
strCnmodsMain = 'http://cnmods.net/prod-api/index/moduleListPage.do'

strCnmodsIndex = 'http://cnmods.net/web/moduleDetail?keyId='
strCnmodsIndexMobile = 'http://cnmods.net/mobile/moduleDetail?keyId='

strRulesMain = 'https://api.oliva.icu/rules'
strExtiverseDeckMain = 'https://api.oliva.icu/extiverse/deck/index.json'
4 changes: 2 additions & 2 deletions OlivaDiceOdyssey/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
'''


OlivaDiceOdyssey_ver = '3.0.11'
OlivaDiceOdyssey_svn = 12
OlivaDiceOdyssey_ver = '3.0.12'
OlivaDiceOdyssey_svn = 13
OlivaDiceOdyssey_ver_short = '%s(%s)' % (str(OlivaDiceOdyssey_ver), str(OlivaDiceOdyssey_svn))

gProc = None
12 changes: 8 additions & 4 deletions OlivaDiceOdyssey/msgReply.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,13 @@ def unity_reply(plugin_event, Proc):
if len(tmp_tag_list) > 0:
tmp_tag_str = '%s\n' % ' - '.join(tmp_tag_list)
url_index = OlivaDiceOdyssey.cnmodsData.strCnmodsIndex
tmp_cnmods_str = '《%s》\n%s%s\n链接:%s' % (
url_index_mobile = OlivaDiceOdyssey.cnmodsData.strCnmodsIndexMobile
tmp_cnmods_str = '《%s》\n%s%s\n链接:%s\n移动端:%s' % (
tmp_get_res['title'],
tmp_tag_str,
html.unescape(re.sub('\\</{0,1}(.+?)\\>', '', tmp_get_res['opinion'])),
url_index + str(tmp_get_res['keyId'])
url_index + str(tmp_get_res['keyId']),
url_index_mobile + str(tmp_get_res['keyId'])
)
tmp_reply_str = tmp_cnmods_str
except:
Expand Down Expand Up @@ -382,11 +384,13 @@ def unity_reply(plugin_event, Proc):
if len(tmp_tag_list) > 0:
tmp_tag_str = '%s\n' % ' - '.join(tmp_tag_list)
url_index = OlivaDiceOdyssey.cnmodsData.strCnmodsIndex
tmp_cnmods_str = '《%s》\n%s%s\n链接:%s' % (
url_index_mobile = OlivaDiceOdyssey.cnmodsData.strCnmodsIndexMobile
tmp_cnmods_str = '《%s》\n%s%s\n链接:%s\n移动端:%s' % (
tmp_get_res['title'],
tmp_tag_str,
html.unescape(re.sub('\\</{0,1}(.+?)\\>', '', tmp_get_res['opinion'])),
url_index + str(tmp_get_res['keyId'])
url_index + str(tmp_get_res['keyId']),
url_index_mobile + str(tmp_get_res['keyId'])
)
tmp_reply_str = tmp_cnmods_str
else:
Expand Down

0 comments on commit 8a05dee

Please sign in to comment.