Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
64d39f1d
Commit
64d39f1d
authored
Apr 08, 2016
by
刘文胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
ae4084b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
httpService.js
app/service/httpService.js
+5
-2
No files found.
app/service/httpService.js
View file @
64d39f1d
...
@@ -51,7 +51,7 @@ function createSignature(str){
...
@@ -51,7 +51,7 @@ function createSignature(str){
return
signature
;
return
signature
;
}
}
exports
.
sendRequest
=
function
(
ent_code
,
mid
,
action
,
messageid
,
integral
,
exp
)
{
exports
.
sendRequest
=
function
(
ent_code
,
mid
,
action
,
messageid
,
integral
,
exp
,
reason
)
{
/*var obj = {
/*var obj = {
tag: 'member',
tag: 'member',
key: 'forum',
key: 'forum',
...
@@ -71,7 +71,10 @@ exports.sendRequest = function(ent_code, mid, action, messageid, integral, exp)
...
@@ -71,7 +71,10 @@ exports.sendRequest = function(ent_code, mid, action, messageid, integral, exp)
var
obj
=
{
var
obj
=
{
action
:
ACTION_KEY
[
action
],
action
:
ACTION_KEY
[
action
],
mid
:
mid
,
mid
:
mid
,
entCode
:
ent_code
entCode
:
ent_code
,
integral
:
integral
||
0
,
exp
:
exp
||
0
,
reason
:
reason
||
''
};
};
//将参数排序
//将参数排序
obj
.
signature
=
createSignature
(
paramSort
(
obj
));
//接口调用参数签名
obj
.
signature
=
createSignature
(
paramSort
(
obj
));
//接口调用参数签名
...
...
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