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 @@
<script
src=
"libs/aes.js"
></script>
<script
src=
"libs/pad-zeropadding.js"
></script>
<script>
window
[
'duiba'
]
=
''
;
// window['duiba'] = '/duiba';
window
[
'registerWX'
]
=
(
result
)
=>
{
console
.
log
(
result
)}
window
[
'price1'
]
=
1
;
window
[
'price2'
]
=
2
;
...
...
egret/libs/tw/manager/NetManager.ts
View file @
bef3301f
...
...
@@ -469,7 +469,7 @@ export class NetManager extends ABNetManager {
var
sgin
=
this
.
encrypt
(
JSON
.
stringify
(
data
));
const
net
:
INetData
=
{
name
:
'hc_submit'
,
uri
:
'/hdtool/happyclear/submit'
,
uri
:
window
[
'duiba'
]
+
'/hdtool/happyclear/submit'
,
type
:
'post'
,
dataType
:
'json'
,
param
:
{
...
...
@@ -492,7 +492,7 @@ export class NetManager extends ABNetManager {
hc_openTreasureBox
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
name
:
'hc_openTreasureBox'
,
uri
:
'/customActivity/happyclear/openTreasureBox'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/openTreasureBox'
,
type
:
'post'
,
dataType
:
'json'
,
param
:
{
...
...
@@ -519,7 +519,7 @@ export class NetManager extends ABNetManager {
};
const
net
:
INetData
=
{
name
:
NetName
.
CUSTOM_ORDER_STATUS
,
uri
:
'/hdtool/recon/getOrderStatus'
,
uri
:
window
[
'duiba'
]
+
'/hdtool/recon/getOrderStatus'
,
type
:
'post'
,
dataType
:
'json'
,
param
:
param
,
...
...
@@ -731,7 +731,7 @@ export class NetManager extends ABNetManager {
public
getPlugOrderStatus
(
callback
:
Function
,
orderId
:
number
,
pollingCheck
:
Function
,
pollingCount
=
10
,
prizeLevel
?:
number
):
void
{
const
net
:
INetData
=
{
name
:
'getPlugOrderStatus'
,
uri
:
'/plugin/getOrderStatus'
,
uri
:
window
[
'duiba'
]
+
'/plugin/getOrderStatus'
,
type
:
'get'
,
dataType
:
'json'
,
param
:
{
...
...
@@ -806,7 +806,7 @@ export class NetManager extends ABNetManager {
public
ajaxElement
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
name
:
NetName
.
CUSTOM_ELEMENT
,
uri
:
'/hdtool/recon/ajaxElement'
,
uri
:
window
[
'duiba'
]
+
'/hdtool/recon/ajaxElement'
,
type
:
'get'
,
dataType
:
'json'
,
param
:
{
...
...
@@ -820,7 +820,7 @@ export class NetManager extends ABNetManager {
public
getShareInfo
(
callback
:
Function
,
):
void
{
const
net
:
INetData
=
{
name
:
'getShareInfo'
,
uri
:
'/wechatShare/getShareInfo/v2'
,
uri
:
window
[
'duiba'
]
+
'/wechatShare/getShareInfo/v2'
,
type
:
'get'
,
hideMsg
:
true
,
dataType
:
'json'
,
...
...
@@ -835,7 +835,7 @@ export class NetManager extends ABNetManager {
public
imgUrl
(
callback
:
Function
,
img64
:
string
):
void
{
const
net
:
INetData
=
{
name
:
'imgURL'
,
uri
:
'/customActivity/duiba/imgUrl'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/duiba/imgUrl'
,
type
:
'post'
,
dataType
:
'json'
,
param
:
JSON
.
stringify
({
...
...
@@ -851,7 +851,7 @@ export class NetManager extends ABNetManager {
public
hc_home
(
callback
:
Function
,
collectRuleId
:
number
):
void
{
const
net
:
INetData
=
{
name
:
'hc_home'
,
uri
:
'/customActivity/happyclear/home'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/home'
,
type
:
'get'
,
dataType
:
'json'
,
param
:
{
...
...
@@ -864,7 +864,7 @@ export class NetManager extends ABNetManager {
public
hc_getLevelInfo
(
callback
:
Function
,
getLevelInfo
:
number
):
void
{
const
net
:
INetData
=
{
name
:
'hc_getLevelInfo'
,
uri
:
'/customActivity/happyclear/getLevelInfo'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/getLevelInfo'
,
type
:
'get'
,
dataType
:
'json'
,
param
:
{
...
...
@@ -886,7 +886,7 @@ export class NetManager extends ABNetManager {
}
const
net
:
INetData
=
{
name
:
'hc_exchange'
,
uri
:
'/customActivity/happyclear/exchange'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/exchange'
,
type
:
'post'
,
dataType
:
'json'
,
param
:
d
,
...
...
@@ -897,7 +897,7 @@ export class NetManager extends ABNetManager {
public
hc_askForEnergy
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
name
:
'hc_askForEnergy'
,
uri
:
'/customActivity/happyclear/askForEnergy'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/askForEnergy'
,
type
:
'post'
,
dataType
:
'json'
,
param
:
{
...
...
@@ -910,7 +910,7 @@ export class NetManager extends ABNetManager {
public
hc_useProp
(
callback
:
Function
,
propType
:
number
):
void
{
const
net
:
INetData
=
{
name
:
'hc_useProp'
,
uri
:
'/customActivity/happyclear/useProp'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/useProp'
,
type
:
'post'
,
dataType
:
'json'
,
param
:
{
...
...
@@ -1046,7 +1046,7 @@ export class NetManager extends ABNetManager {
const
net
:
INetData
=
{
name
:
'hc_doJoin'
,
uri
:
'/hdtool/happyclear/doJoin'
,
uri
:
window
[
'duiba'
]
+
'/hdtool/happyclear/doJoin'
,
type
:
'post'
,
dataType
:
'json'
,
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