Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
llewan-weixin-sdk
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
llewan
llewan-weixin-sdk
Commits
e37fcb24
Commit
e37fcb24
authored
Sep 27, 2018
by
liuxinjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新保存数据bug
parent
dcf14c98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sdk.js
assets/llewan-weixin-sdk/sdk.js
+2
-2
No files found.
assets/llewan-weixin-sdk/sdk.js
View file @
e37fcb24
...
...
@@ -1495,7 +1495,7 @@ var sdk = {
{
expireTime
=
24
*
60
*
60
;
}
dataKey
=
sdk_conf
.
game
+
":"
+
dataType
+
":"
+
dataKey
;
dataKey
=
sdk_conf
.
game
+
":"
+
dataType
+
":"
+
this
.
getUser
().
uid
+
":"
+
dataKey
;
self
.
setLocalCache
(
dataKey
,
JSON
.
stringify
(
data
),
expireTime
);
console
.
log
(
"setToServer "
+
dataKey
+
" value "
+
JSON
.
stringify
(
data
));
this
.
Get
(
this
.
ip2
+
this
.
set
,
{
key
:
dataKey
,
data
:
JSON
.
stringify
(
data
),
data_type
:
dataType
,
expireTime
:
String
(
expireTime
)},
function
(
d
)
{
...
...
@@ -1525,7 +1525,7 @@ var sdk = {
getFromServer
:
function
(
dataKey
,
dataType
,
data
,
callbackFunction
){
var
self
=
this
;
dataKey
=
sdk_conf
.
game
+
":"
+
dataType
+
":"
+
dataKey
;
dataKey
=
sdk_conf
.
game
+
":"
+
dataType
+
":"
+
this
.
getUser
().
uid
+
":"
+
dataKey
;
var
cacheData
=
this
.
getLocalCache
(
dataKey
)
console
.
log
(
"getFromServer "
+
dataKey
+
" 本地获取值:"
+
cacheData
);
...
...
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