Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
starlight
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
starlight
Commits
c7d8a3f1
Commit
c7d8a3f1
authored
Jun 01, 2023
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
a42f7c81
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
44 additions
and
29 deletions
+44
-29
GenerateTestUserSig.java
...in/java/com/tencent/liteav/debug/GenerateTestUserSig.java
+1
-1
AndroidManifest.xml
app/src/main/xiaomi/AndroidManifest.xml
+1
-0
Constant.java
cms/src/main/java/com/zxhl/cms/common/Constant.java
+1
-1
NetConfig.java
cms/src/main/java/com/zxhl/cms/common/NetConfig.java
+15
-13
ApiClient.kt
cms/src/main/java/com/zxhl/cms/net/ApiClient.kt
+1
-1
EventApiClient.kt
cms/src/main/java/com/zxhl/cms/net/EventApiClient.kt
+1
-1
IUserInfoApi.java
cms/src/main/java/com/zxhl/cms/net/api/IUserInfoApi.java
+11
-6
WxBindEntity.kt
...rc/main/java/com/zxhl/cms/net/model/other/WxBindEntity.kt
+1
-0
GoogleLoginUtil.kt
cms/src/main/java/com/zxhl/cms/utils/GoogleLoginUtil.kt
+2
-1
GenerateTestUserSig.java
.../main/java/com/zxhl/cms/utils/Im/GenerateTestUserSig.java
+1
-1
UserDataUtils.kt
cms/src/main/java/com/zxhl/cms/utils/UserDataUtils.kt
+1
-1
icon_dialog_update_tips.png
cms/src/main/res/drawable-xhdpi/icon_dialog_update_tips.png
+0
-0
LoginBeforeActivity.kt
...n/java/com/zxhl/main/page/activity/LoginBeforeActivity.kt
+4
-0
PopularFragment.kt
.../main/java/com/zxhl/main/page/fragment/PopularFragment.kt
+1
-1
EditUserInfoPresenter.kt
...ava/com/zxhl/main/page/presenter/EditUserInfoPresenter.kt
+2
-1
LoginPresenter.kt
.../main/java/com/zxhl/main/page/presenter/LoginPresenter.kt
+1
-1
No files found.
Debug/src/main/java/com/tencent/liteav/debug/GenerateTestUserSig.java
View file @
c7d8a3f1
...
...
@@ -39,7 +39,7 @@ public class GenerateTestUserSig {
* 它是腾讯云用于区分客户的唯一标识。
*/
// public static final int SDKAPPID = 1400605334;
public
static
final
int
SDKAPPID
=
1400
655771
;
public
static
final
int
SDKAPPID
=
1400
813486
;
/**
...
...
app/src/main/xiaomi/AndroidManifest.xml
View file @
c7d8a3f1
...
...
@@ -50,6 +50,7 @@
<activity
android:name=
"com.zhangxin.starlight.activity.MainActivity"
android:exported=
"true"
android:screenOrientation=
"portrait"
android:launchMode=
"singleTask"
>
<intent-filter>
<action
android:name=
"android.intent.action.VIEW"
/>
...
...
cms/src/main/java/com/zxhl/cms/common/Constant.java
View file @
c7d8a3f1
...
...
@@ -27,7 +27,7 @@ public class Constant {
public
static
String
WX_APPID
=
"wx7fc1506d059d5ac1"
;
public
static
String
WX_APPKEY
=
"77202c1939fbe6421f2e9c998a0bbec0"
;
// public static int SDKAPPID = 1400605334;
public
static
int
SDKAPPID
=
1400
655771
;
public
static
int
SDKAPPID
=
1400
813486
;
public
static
String
PAY_RESULT
=
"pay_result"
;
...
...
cms/src/main/java/com/zxhl/cms/common/NetConfig.java
View file @
c7d8a3f1
...
...
@@ -54,7 +54,9 @@ public class NetConfig {
BASE_FEED_URL
=
"https://feedapi-sandbox.zhangxinhulian.com/"
;
break
;
default
:
BASE_URL
=
"http://feedapitest4.zhangxinhulian.com/"
;
// BASE_URL = "http://feedapitest4.zhangxinhulian.com/";
// BASE_URL = "http://8.218.187.222:19897/";
BASE_URL
=
"http://192.168.124.59:19898/"
;
BASE_WEB_URL
=
"http://feedapitest4.zhangxinhulian.com/"
;
BASE_NEW_URL
=
"http://feedapitest4.zhangxinhulian.com/"
;
BASE_FEED_URL
=
"http://feedapitest4.zhangxinhulian.com/"
;
...
...
@@ -206,18 +208,18 @@ public class NetConfig {
}
public
static
class
H5
{
public
static
String
WEB_URL_USER
=
"https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xgchat/hk/StarlightTermsOfService.html?version="
+
Constant
.
Param
.
vn
+
"&appName=StarLight&company=北京志信博文科技发展有限公司"
;
public
static
String
WEB_URL_USER
=
"https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xgchat/hk/StarlightTermsOfService.html?version="
+
Constant
.
Param
.
vn
+
"&appName=StarLight&company=北京志信博文科技发展有限公司"
;
public
static
String
WEB_URL_PRIVACY
=
"https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xgchat/hk/StarlightPrivacyPolicy.html?version="
+
Constant
.
Param
.
vn
+
"&appName=StarLight&company=北京志信博文科技发展有限公司"
;
public
static
String
WEB_URL_PRIVACY
=
"https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xgchat/hk/StarlightPrivacyPolicy.html?version="
+
Constant
.
Param
.
vn
+
"&appName=StarLight&company=北京志信博文科技发展有限公司"
;
public
static
String
WEB_URL_ABOUT_US
=
"https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/aboutMe.html?version="
+
Constant
.
Param
.
vn
+
"&appName=StarLight&company=北京志信博文科技发展有限公司"
;
public
static
String
WEB_URL_ABOUT_US
=
"https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/aboutMe.html?version="
+
Constant
.
Param
.
vn
+
"&appName=StarLight&company=北京志信博文科技发展有限公司"
;
//public static String WEB_URL_CUSTOMER_SERVICE = "https://1568685.s4.udesk.cn/im_client/?web_plugin_id=25351";
public
static
String
WEB_URL_BUYER_KNOW
=
"https://newspool.zhangxinhulian.com//sspapiNovel/su/custom/xgchat/add_value.html?version="
+
Constant
.
Param
.
vn
+
"&appName=StarLight&company=北京志信博文科技发展有限公司"
;
public
static
String
WEB_URL_BUYER_KNOW
=
"https://newspool.zhangxinhulian.com//sspapiNovel/su/custom/xgchat/add_value.html?version="
+
Constant
.
Param
.
vn
+
"&appName=StarLight&company=北京志信博文科技发展有限公司"
;
public
static
String
WEB_URL_INVITE
;
public
static
String
WEB_URL_CUSTOMER_SERVICE
=
"http://cdn-apph5.zhangxinzhixun.com/favorite/newService?pkg=com.zhangxin.starlight"
;
public
static
String
WEB_URL_WINTER_RULE
=
"https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/winter_mh_activity_ruleV1.0.6.html"
;
public
static
String
WEB_URL_CUSTOMER_SERVICE
=
"http://cdn-apph5.zhangxinzhixun.com/favorite/newService?pkg=com.zhangxin.starlight"
;
public
static
String
WEB_URL_WINTER_RULE
=
"https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/winter_mh_activity_ruleV1.0.6.html"
;
}
...
...
@@ -276,16 +278,16 @@ public class NetConfig {
public
static
final
String
HOME_STAR_LIGHT_CLOSE_ROOM
=
"app/v1/game/star/closeRoom"
;
//语音房版本 - 关闭房间
public
static
final
String
HOME_STAR_LIGHT_IN_ROOM
=
"app/v1/game/star/inRoom"
;
//语音房版本 - 进入房间
public
static
final
String
HOME_STAR_LIGHT_OUT_ROOM
=
"app/v1/game/star/outRoom"
;
//语音房版本 - 离开房间
public
static
final
String
HOME_STAR_LIGHT_GIFT
=
"app/v1/game/star/room/gift"
;
//语音房版本 - 送礼物
public
static
final
String
HOME_STAR_GIFT_WALL
=
"app/v1/game/star/giftWall"
;
//语音房版本 - 礼物墙
public
static
final
String
HOME_STAR_LIGHT_GIFT
=
"app/v1/game/star/room/gift"
;
//语音房版本 - 送礼物
public
static
final
String
HOME_STAR_GIFT_WALL
=
"app/v1/game/star/giftWall"
;
//语音房版本 - 礼物墙
public
static
final
String
HOME_STAR_LIGHT_GET_RECENT_CONTACTS
=
"app/v1/game/star/getRecentContacts"
;
//语音房版本 - 获取最近联系人(邀请)
public
static
final
String
HOME_STAR_LIGHT_GET_ROOM_USER
=
"app/v1/game/star/roomUser"
;
//语音房版本 - 获取当前房内用户
public
static
final
String
HOME_STAR_LIGHT_BLACKLIST
=
"app/v1/hk/game/star/blacklist"
;
//我的 - 黑名单列表
public
static
final
String
HOME_STAR_BLACK
=
"app/v1/hk/game/star/black"
;
//拉黑/取消拉黑
public
static
final
String
HOME_STAR_CONSTELLATION_PAIRING
=
"app/v1/hk/game/star/constellationPairing"
;
//星座配对头像列表
public
static
final
String
HOME_STAR_CONSTELLATION_RESLUT
=
"app/v1/hk/game/star/constellationPairing"
;
//星座配对 - 结果获取
public
static
final
String
HOME_STAR_MY_LIKE_LIST
=
"app/v1/hk/game/star/myLikeList"
;
//我的 - 我喜欢列表
public
static
final
String
HOME_STAR_BLACK
=
"app/v1/hk/game/star/black"
;
//拉黑/取消拉黑
public
static
final
String
HOME_STAR_CONSTELLATION_PAIRING
=
"app/v1/hk/game/star/constellationPairing"
;
//星座配对头像列表
public
static
final
String
HOME_STAR_CONSTELLATION_RESLUT
=
"app/v1/hk/game/star/constellationPairing"
;
//星座配对 - 结果获取
public
static
final
String
HOME_STAR_MY_LIKE_LIST
=
"app/v1/hk/game/star/myLikeList"
;
//我的 - 我喜欢列表
}
...
...
cms/src/main/java/com/zxhl/cms/net/ApiClient.kt
View file @
c7d8a3f1
...
...
@@ -20,7 +20,7 @@ object ApiClient {
override
fun
intercept
(
chain
:
Interceptor
.
Chain
):
Response
{
val
request
=
chain
.
request
()
val
builder
=
request
.
url
.
newBuilder
()
return
if
(
request
.
url
.
host
.
toString
()
.
contains
(
"zhangxinhulian.com"
))
{
return
if
(
!
request
.
url
.
host
.
contains
(
"zhangxinhulian.com"
))
{
val
builder
=
request
.
url
.
newBuilder
()
PhoneUtils
.
addParam
(
request
,
builder
)
chain
.
proceed
(
request
.
newBuilder
().
url
(
builder
.
build
()).
build
())
...
...
cms/src/main/java/com/zxhl/cms/net/EventApiClient.kt
View file @
c7d8a3f1
...
...
@@ -46,7 +46,7 @@ object EventApiClient {
.
connectTimeout
(
10000
,
TimeUnit
.
MILLISECONDS
)
.
readTimeout
(
10000
,
TimeUnit
.
MILLISECONDS
)
.
addInterceptor
(
logInterceptor
.
apply
{
level
=
HttpLoggingInterceptor
.
Level
.
BODY
level
=
HttpLoggingInterceptor
.
Level
.
NONE
})
.
hostnameVerifier
{
hostname
,
session
->
true
...
...
cms/src/main/java/com/zxhl/cms/net/api/IUserInfoApi.java
View file @
c7d8a3f1
...
...
@@ -36,7 +36,7 @@ public interface IUserInfoApi {
* @return
*/
@GET
(
NetConfig
.
User
.
URL_USER_GET_USERINFO_
)
Observable
<
Response
<
UserInfo
>>
getUserInfo
();
Observable
<
Response
<
UserInfo
>>
getUserInfo
(
@Query
(
"uid"
)
String
uid
);
/**
...
...
@@ -80,6 +80,7 @@ public interface IUserInfoApi {
*/
@GET
(
NetConfig
.
User
.
VERIFY_PAY_URL
)
Observable
<
Response
<
PayVerifyEntity
>>
verifyPay
(
@Query
(
"outTradeNo"
)
String
outTradeNo
,
@Query
(
"tradeNo"
)
String
tradeNo
,
@Query
(
"payType"
)
int
payType
);
/**
* 获取用户资料
*
...
...
@@ -95,6 +96,7 @@ public interface IUserInfoApi {
*/
@POST
(
NetConfig
.
User
.
USER_FREE_PROGRESS
)
Observable
<
Response
<
VideoProcessEntity
>>
getuserProgress
();
/**
* 判断弹窗
*
...
...
@@ -102,6 +104,7 @@ public interface IUserInfoApi {
*/
@POST
(
NetConfig
.
User
.
USER_CHECK_FREE_TRIALV3
)
Observable
<
Response
<
VideoProcessEntity
>>
checkFreeTrial
();
/**
* 视频上报
*
...
...
@@ -109,6 +112,7 @@ public interface IUserInfoApi {
*/
@POST
(
NetConfig
.
User
.
USER_FREE_REPORT
)
Observable
<
Response
<
VideoResultEntity
>>
freeReport
();
/**
* 支付配置-v2 - 支持打折 和 优惠卷
*
...
...
@@ -116,6 +120,7 @@ public interface IUserInfoApi {
*/
@GET
(
NetConfig
.
User
.
USER_PAY_CONFIG
)
Observable
<
Response
<
MemberEntity
>>
userPayConfig
(
@Query
(
"payMode"
)
String
payMode
);
/**
* 试用领取
*
...
...
cms/src/main/java/com/zxhl/cms/net/model/other/WxBindEntity.kt
View file @
c7d8a3f1
...
...
@@ -7,4 +7,5 @@ package com.zxhl.cms.net.model.other
class
WxBindEntity
{
var
flushToken
:
String
?
=
null
var
token
:
String
?
=
null
var
uid
:
String
?
=
""
}
\ No newline at end of file
cms/src/main/java/com/zxhl/cms/utils/GoogleLoginUtil.kt
View file @
c7d8a3f1
...
...
@@ -57,7 +57,7 @@ class GoogleLoginUtil {
* google登录
*/
fun
googleLogin
(
callBack
:
LoginCallBack
)
{
mLoginCallBack
=
callBack
;
mLoginCallBack
=
callBack
val
account
=
GoogleSignIn
.
getLastSignedInAccount
(
mActivity
)
if
(
account
!=
null
)
{
bindGoogle
(
account
.
id
,
account
.
displayName
,
account
.
photoUrl
.
toString
())
...
...
@@ -110,6 +110,7 @@ class GoogleLoginUtil {
.
subscribe
(
object
:
BaseObserver
<
WxBindEntity
>()
{
override
fun
onSuccess
(
result
:
WxBindEntity
?)
{
SettingPreference
.
saveToken
(
result
?.
token
)
SettingPreference
.
setUid
(
result
?.
uid
)
UserDataUtils
.
updateUserInfo
(
null
)
Constant
.
Switch
.
isLogin
=
true
mLoginCallBack
?.
onLoginSuccess
()
...
...
cms/src/main/java/com/zxhl/cms/utils/Im/GenerateTestUserSig.java
View file @
c7d8a3f1
...
...
@@ -41,7 +41,7 @@ public class GenerateTestUserSig {
* 进入腾讯云云通信[控制台](https://console.cloud.tencent.com/avc ) 创建应用,即可看到 SDKAppId,
* 它是腾讯云用于区分客户的唯一标识。
*/
public
static
final
int
SDKAPPID
=
1400
605334
;
public
static
final
int
SDKAPPID
=
1400
813486
;
/**
* 签名过期时间,建议不要设置的过短
...
...
cms/src/main/java/com/zxhl/cms/utils/UserDataUtils.kt
View file @
c7d8a3f1
...
...
@@ -13,7 +13,7 @@ import com.zxhl.cms.net.model.uc.UserInfo
object
UserDataUtils
{
fun
updateUserInfo
(
callback
:
AdCallback
<
String
>?)
{
userInfoAPi
.
userInfo
.
compose
<
Response
<
UserInfo
>>(
RxSchedulers
.
observableIO2Main
())
userInfoAPi
.
getUserInfo
(
SettingPreference
.
getUid
())
.
compose
<
Response
<
UserInfo
>>(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
UserInfo
>()
{
override
fun
onSuccess
(
result
:
UserInfo
)
{
SettingPreference
.
saveUserInfo
(
result
)
...
...
cms/src/main/res/drawable-xhdpi/icon_dialog_update_tips.png
deleted
100644 → 0
View file @
a42f7c81
17.5 KB
moduleMain/src/main/java/com/zxhl/main/page/activity/LoginBeforeActivity.kt
View file @
c7d8a3f1
...
...
@@ -237,6 +237,10 @@ class LoginBeforeActivity : BaseActivity(), ImLoginContract.View {
}
override
fun
getSignFail
()
{
JumpUtils
.
activityJump
(
RounterBus
.
getRounter
(
RounterApi
::
class
.
java
).
getIntentActivityMain
()
)
finish
()
}
}
\ No newline at end of file
moduleMain/src/main/java/com/zxhl/main/page/fragment/PopularFragment.kt
View file @
c7d8a3f1
...
...
@@ -266,7 +266,7 @@ class PopularFragment : BaseFragment(), HomeContract.View, OnRecycleItemClickLis
R
.
id
.
id_img_video
->{
Log
.
e
(
"MXL:"
,
"status:"
+
chatEntity
?.
chatStatus
)
chatEntity
=
data
JumpUtils
.
startC2CChatActivity
(
1
,
"128814"
,
data
?.
nickname
)
JumpUtils
.
startC2CChatActivity
(
1
,
data
?.
uid
,
data
?.
nickname
)
// TUIUtils.CallVideo("128814")
}
R
.
id
.
id_rl_play_audio
->
{
...
...
moduleMain/src/main/java/com/zxhl/main/page/presenter/EditUserInfoPresenter.kt
View file @
c7d8a3f1
...
...
@@ -4,6 +4,7 @@ import android.util.Log
import
com.zxhl.cms.ad.upload.model.Response
import
com.zxhl.cms.net.ApiClient
import
com.zxhl.cms.net.RxSchedulers
import
com.zxhl.cms.net.SettingPreference
import
com.zxhl.cms.net.callback.BaseObserver
import
com.zxhl.cms.net.model.chat.PictureEntity
import
com.zxhl.cms.net.model.uc.UserInfo
...
...
@@ -19,7 +20,7 @@ class EditUserInfoPresenter : EditUserInfoContract.Presenter {
}
override
fun
getUserInfo
()
{
ApiClient
.
userInfoAPi
.
userInfo
.
compose
<
Response
<
UserInfo
>>(
RxSchedulers
.
observableIO2Main
())
ApiClient
.
userInfoAPi
.
getUserInfo
(
SettingPreference
.
getUid
())
.
compose
<
Response
<
UserInfo
>>(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
UserInfo
>()
{
override
fun
onSuccess
(
result
:
UserInfo
)
{
mView
.
setData
(
result
)
...
...
moduleMain/src/main/java/com/zxhl/main/page/presenter/LoginPresenter.kt
View file @
c7d8a3f1
...
...
@@ -76,7 +76,7 @@ class LoginPresenter : LoginContract.Presenter {
override
fun
getUserInfo
()
{
ApiClient
.
userInfoAPi
.
getUserInfo
().
compose
(
RxSchedulers
.
observableIO2Main
())
ApiClient
.
userInfoAPi
.
getUserInfo
(
SettingPreference
.
getUid
()
).
compose
(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
UserInfo
>()
{
override
fun
onSuccess
(
result
:
UserInfo
)
{
val
uid
=
result
.
uid
...
...
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