Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
唐文
/
AiyoZhuaWaWa
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bdbc9225
authored
Nov 28, 2017
by
chengfengpiaopiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换正式环境
parent
726221e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
25 deletions
.idea/misc.xml
app/src/main/java/com/maile/jingcai/base/Constant.java
app/src/main/java/com/maile/jingcai/view/activity/MainActivity.java
.idea/misc.xml
View file @
bdbc9225
...
...
@@ -27,7 +27,7 @@
</value>
</option>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
8
"
default=
"true"
assert-keyword=
"true"
jdk-15=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
7
"
default=
"true"
assert-keyword=
"true"
jdk-15=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
<component
name=
"ProjectType"
>
...
...
app/src/main/java/com/maile/jingcai/base/Constant.java
View file @
bdbc9225
...
...
@@ -19,6 +19,12 @@ public class Constant {
public
static
final
boolean
DEBUG
=
true
;
public
static
final
String
BASE_URL
=
"http://api.7peng.cn"
;
//大厅
public
static
final
String
GAME_HOME
=
"http://h5.7peng.cn/"
;
//商城
public
static
final
String
SHOP_HOME
=
"http://api.7peng.cn/shop"
;
//个人主页
public
static
final
String
PERSONALE_HOME
=
"http://h5.7peng.cn/profile.html"
;
public
static
final
String
WEIXIN_APP_ID
=
"wxac811a3942bd3638"
;
public
static
final
String
WEIXIN_APP_SECRET
=
"182ad59bb146ed391f7d6c8ce5664903"
;
...
...
@@ -35,27 +41,27 @@ public class Constant {
//分享图片路径
public
final
static
String
SHARE_DIR
=
sBANANA_DIR
+
"/share/"
;
//正式地址
public
static
final
String
RELEASE_BASE_URL
=
"http://700sport.com/"
;
//外部测试地址
public
static
final
String
OUT_BASE_URL_TEST
=
"http://106.75.137.139/"
;
// 测服的外网
//测试地址
public
static
final
String
BASE_URL_TEST
=
"http://192.168.175.136:8080/"
;
public
static
String
getBaseUrl
()
{
switch
(
BuildConfig
.
network_type
){
case
networkType
.
TEST
:
return
BASE_URL_TEST
;
case
networkType
.
OUT_TEST
:
return
OUT_BASE_URL_TEST
;
case
networkType
.
RELEASE
:
default
:
return
RELEASE_BASE_URL
;
}
}
//
//正式地址
//
public static final String RELEASE_BASE_URL = "http://700sport.com/";
//
//
//外部测试地址
//
public static final String OUT_BASE_URL_TEST = "http://106.75.137.139/"; // 测服的外网
//
//
//测试地址
//
public static final String BASE_URL_TEST = "http://192.168.175.136:8080/";
//
//
//
public static String getBaseUrl() {
//
switch (BuildConfig.network_type){
//
case networkType.TEST:
//
return BASE_URL_TEST;
//
//
case networkType.OUT_TEST:
//
return OUT_BASE_URL_TEST;
//
//
case networkType.RELEASE:
//
default:
//
return RELEASE_BASE_URL;
//
}
//
}
}
app/src/main/java/com/maile/jingcai/view/activity/MainActivity.java
View file @
bdbc9225
...
...
@@ -109,7 +109,7 @@ public class MainActivity extends FragmentActivity implements IWebView ,Activity
//http://api.7peng.cn/shop 商城
//http://h5.7peng.cn/profile.html 个人主页
//
private
String
[]
urls
=
{
"http://h5.7peng.cn/"
,
"http://api.7peng.cn/shop"
,
"http://h5.7peng.cn/profile.html"
};
private
String
[]
urls
=
{
Constant
.
GAME_HOME
,
Constant
.
SHOP_HOME
,
Constant
.
PERSONALE_HOME
};
private
String
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