Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
bef3301f
Commit
bef3301f
authored
Aug 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3c3da063
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
index.html
egret/index.html
+2
-0
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+13
-13
No files found.
egret/index.html
View file @
bef3301f
...
@@ -47,6 +47,8 @@
...
@@ -47,6 +47,8 @@
<script
src=
"libs/aes.js"
></script>
<script
src=
"libs/aes.js"
></script>
<script
src=
"libs/pad-zeropadding.js"
></script>
<script
src=
"libs/pad-zeropadding.js"
></script>
<script>
<script>
window
[
'duiba'
]
=
''
;
// window['duiba'] = '/duiba';
window
[
'registerWX'
]
=
(
result
)
=>
{
console
.
log
(
result
)}
window
[
'registerWX'
]
=
(
result
)
=>
{
console
.
log
(
result
)}
window
[
'price1'
]
=
1
;
window
[
'price1'
]
=
1
;
window
[
'price2'
]
=
2
;
window
[
'price2'
]
=
2
;
...
...
egret/libs/tw/manager/NetManager.ts
View file @
bef3301f
...
@@ -469,7 +469,7 @@ export class NetManager extends ABNetManager {
...
@@ -469,7 +469,7 @@ export class NetManager extends ABNetManager {
var
sgin
=
this
.
encrypt
(
JSON
.
stringify
(
data
));
var
sgin
=
this
.
encrypt
(
JSON
.
stringify
(
data
));
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'hc_submit'
,
name
:
'hc_submit'
,
uri
:
'/hdtool/happyclear/submit'
,
uri
:
window
[
'duiba'
]
+
'/hdtool/happyclear/submit'
,
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
{
...
@@ -492,7 +492,7 @@ export class NetManager extends ABNetManager {
...
@@ -492,7 +492,7 @@ export class NetManager extends ABNetManager {
hc_openTreasureBox
(
callback
:
Function
):
void
{
hc_openTreasureBox
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'hc_openTreasureBox'
,
name
:
'hc_openTreasureBox'
,
uri
:
'/customActivity/happyclear/openTreasureBox'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/openTreasureBox'
,
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
{
...
@@ -519,7 +519,7 @@ export class NetManager extends ABNetManager {
...
@@ -519,7 +519,7 @@ export class NetManager extends ABNetManager {
};
};
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
NetName
.
CUSTOM_ORDER_STATUS
,
name
:
NetName
.
CUSTOM_ORDER_STATUS
,
uri
:
'/hdtool/recon/getOrderStatus'
,
uri
:
window
[
'duiba'
]
+
'/hdtool/recon/getOrderStatus'
,
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
param
,
param
:
param
,
...
@@ -731,7 +731,7 @@ export class NetManager extends ABNetManager {
...
@@ -731,7 +731,7 @@ export class NetManager extends ABNetManager {
public
getPlugOrderStatus
(
callback
:
Function
,
orderId
:
number
,
pollingCheck
:
Function
,
pollingCount
=
10
,
prizeLevel
?:
number
):
void
{
public
getPlugOrderStatus
(
callback
:
Function
,
orderId
:
number
,
pollingCheck
:
Function
,
pollingCount
=
10
,
prizeLevel
?:
number
):
void
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'getPlugOrderStatus'
,
name
:
'getPlugOrderStatus'
,
uri
:
'/plugin/getOrderStatus'
,
uri
:
window
[
'duiba'
]
+
'/plugin/getOrderStatus'
,
type
:
'get'
,
type
:
'get'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
{
...
@@ -806,7 +806,7 @@ export class NetManager extends ABNetManager {
...
@@ -806,7 +806,7 @@ export class NetManager extends ABNetManager {
public
ajaxElement
(
callback
:
Function
):
void
{
public
ajaxElement
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
NetName
.
CUSTOM_ELEMENT
,
name
:
NetName
.
CUSTOM_ELEMENT
,
uri
:
'/hdtool/recon/ajaxElement'
,
uri
:
window
[
'duiba'
]
+
'/hdtool/recon/ajaxElement'
,
type
:
'get'
,
type
:
'get'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
{
...
@@ -820,7 +820,7 @@ export class NetManager extends ABNetManager {
...
@@ -820,7 +820,7 @@ export class NetManager extends ABNetManager {
public
getShareInfo
(
callback
:
Function
,
):
void
{
public
getShareInfo
(
callback
:
Function
,
):
void
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'getShareInfo'
,
name
:
'getShareInfo'
,
uri
:
'/wechatShare/getShareInfo/v2'
,
uri
:
window
[
'duiba'
]
+
'/wechatShare/getShareInfo/v2'
,
type
:
'get'
,
type
:
'get'
,
hideMsg
:
true
,
hideMsg
:
true
,
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -835,7 +835,7 @@ export class NetManager extends ABNetManager {
...
@@ -835,7 +835,7 @@ export class NetManager extends ABNetManager {
public
imgUrl
(
callback
:
Function
,
img64
:
string
):
void
{
public
imgUrl
(
callback
:
Function
,
img64
:
string
):
void
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'imgURL'
,
name
:
'imgURL'
,
uri
:
'/customActivity/duiba/imgUrl'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/duiba/imgUrl'
,
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
JSON
.
stringify
({
param
:
JSON
.
stringify
({
...
@@ -851,7 +851,7 @@ export class NetManager extends ABNetManager {
...
@@ -851,7 +851,7 @@ export class NetManager extends ABNetManager {
public
hc_home
(
callback
:
Function
,
collectRuleId
:
number
):
void
{
public
hc_home
(
callback
:
Function
,
collectRuleId
:
number
):
void
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'hc_home'
,
name
:
'hc_home'
,
uri
:
'/customActivity/happyclear/home'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/home'
,
type
:
'get'
,
type
:
'get'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
{
...
@@ -864,7 +864,7 @@ export class NetManager extends ABNetManager {
...
@@ -864,7 +864,7 @@ export class NetManager extends ABNetManager {
public
hc_getLevelInfo
(
callback
:
Function
,
getLevelInfo
:
number
):
void
{
public
hc_getLevelInfo
(
callback
:
Function
,
getLevelInfo
:
number
):
void
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'hc_getLevelInfo'
,
name
:
'hc_getLevelInfo'
,
uri
:
'/customActivity/happyclear/getLevelInfo'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/getLevelInfo'
,
type
:
'get'
,
type
:
'get'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
{
...
@@ -886,7 +886,7 @@ export class NetManager extends ABNetManager {
...
@@ -886,7 +886,7 @@ export class NetManager extends ABNetManager {
}
}
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'hc_exchange'
,
name
:
'hc_exchange'
,
uri
:
'/customActivity/happyclear/exchange'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/exchange'
,
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
d
,
param
:
d
,
...
@@ -897,7 +897,7 @@ export class NetManager extends ABNetManager {
...
@@ -897,7 +897,7 @@ export class NetManager extends ABNetManager {
public
hc_askForEnergy
(
callback
:
Function
):
void
{
public
hc_askForEnergy
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'hc_askForEnergy'
,
name
:
'hc_askForEnergy'
,
uri
:
'/customActivity/happyclear/askForEnergy'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/askForEnergy'
,
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
{
...
@@ -910,7 +910,7 @@ export class NetManager extends ABNetManager {
...
@@ -910,7 +910,7 @@ export class NetManager extends ABNetManager {
public
hc_useProp
(
callback
:
Function
,
propType
:
number
):
void
{
public
hc_useProp
(
callback
:
Function
,
propType
:
number
):
void
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'hc_useProp'
,
name
:
'hc_useProp'
,
uri
:
'/customActivity/happyclear/useProp'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/useProp'
,
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
{
...
@@ -1046,7 +1046,7 @@ export class NetManager extends ABNetManager {
...
@@ -1046,7 +1046,7 @@ export class NetManager extends ABNetManager {
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'hc_doJoin'
,
name
:
'hc_doJoin'
,
uri
:
'/hdtool/happyclear/doJoin'
,
uri
:
window
[
'duiba'
]
+
'/hdtool/happyclear/doJoin'
,
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
param
,
param
:
param
,
...
...
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