Skip to content

Commit

Permalink
更新缓存判断
Browse files Browse the repository at this point in the history
  • Loading branch information
1250422131 committed May 24, 2023
1 parent b36d01c commit 1222d51
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class AsVideoViewModel(
val loadDialog = DialogUtils.loadDialog(context).apply { show() }
CoroutineScope(Dispatchers.Default).launch {

if ((context as AsVideoActivity).userBaseBean.data.level >= 2) {
if ((context as AsVideoActivity).userBaseBean.data.level >= 2) {
val dashVideoPlayBean = KtHttpUtils.addHeader("cookie", context.asUser.cookie)
.addHeader("referer", "https://www.bilibili.com")
.asyncGet<DashVideoPlayBean>("${BilibiliApi.videoPlayPath}?bvid=${context.bvid}&cid=${context.cid}&qn=64&fnval=4048&fourk=1")
Expand All @@ -77,7 +77,7 @@ class AsVideoViewModel(

} else {
launch(Dispatchers.Main) {
AsDialog.build {
AsDialog.init(context).build {
config = {
title = "止步于此"
content =
Expand Down Expand Up @@ -112,7 +112,7 @@ class AsVideoViewModel(

CoroutineScope(Dispatchers.Default).launch {

if ((context as AsVideoActivity).userBaseBean.data.level > 2) {
if ((context as AsVideoActivity).userBaseBean.data.level >= 2) {
val dashVideoPlayBean =
KtHttpUtils.addHeader("cookie", context.asUser.cookie)
.addHeader("referer", "https://www.bilibili.com")
Expand All @@ -129,7 +129,7 @@ class AsVideoViewModel(

} else {
launch(Dispatchers.Main) {
AsDialog.build {
AsDialog.init(context).build {
config = {
title = "止步于此"
content =
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
}
</string>

<string name="new_version_doc">2.0.1恢復了封面,音視頻獨立下載和ffmpeg合併視頻的功能,請務必查看。</string>
<string name="new_version_doc">2.0.31紧急修复了B站接口改动的问题(但不确定是否后面还会有其他接口改动)</string>
<string name="app_donate_doc">BILIBILIAS自運營之初,就有後端支持,我們現時採用的是學生伺服器,但即使如此,每月也會產生費用。\n囙此,希望BILIBILIAS的用戶們可以支援一些費用,一次早餐費,一次奶茶費,一次午飯費就可以滿足BILIBILIAS絕大部分的費用。\n最後,感謝所有為BILIBILIAS捐款和支持AS的用戶。\n你可以不匿名和匿名捐款,推薦不匿名捐款。\n帶上AS和QQ號等聯繫方式</string>
<string name="user_dl_merge_cmd" >
如果你不清楚FFmpeg命令,请不要修改\n
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
}
}
</string>
<string name="new_version_doc">2.0.2支持了追番記錄匯出,網頁解析功能。</string>
<string name="new_version_doc">2.0.31紧急修复了B站接口改动的问题(但不确定是否后面还会有其他接口改动)</string>
<string name="user_dl_merge_cmd">
如果你不清楚FFmpeg命令,请不要修改\n
BILIBILIAS为大家提供了简单的命令参数\n
Expand Down Expand Up @@ -190,7 +190,7 @@
<string name="app_fragment_home_donate">捐款</string>
<string name="app_fragment_home_salute">致敬</string>
<string name="app_fragment_home_update_content">更新内容</string>
<string name="app_fragment_home_version">V2.0.2</string>
<string name="app_fragment_home_version">V2.0.31</string>
<string name="app_fragment_home_salute_text">向全体BILIBILIAS用户致敬</string>
<string name="app_fragment_home_salute_doc">爱好和追求不分年龄,无论何时,对生活有份热爱,才是最快乐的事,生命才能多姿多彩!—— BILIBILIAS用户</string>
<string name="app_fragment_home_donate_text">为BILIBILIAS的开发提供支持</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ object BiliBiliAsApi {

const val serviceTestApi: String = "http://106.47.27.177:2233/api/v1/"
private const val serviceApi: String = "https://api.misakamoe.com/"
const val version = 3.4
const val version = 3.5
const val updateDataPath: String = serviceApi + "app/bilibilias.php"
const val appFunction = serviceApi + "app/AppFunction.php"
const val appAddAsVideoData = serviceApi + "bilibili/AppVideoAsAdd.php"
Expand Down

0 comments on commit 1222d51

Please sign in to comment.