Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
weixiuhui
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
蒋林
weixiuhui
Commits
43857074
Commit
43857074
authored
Nov 22, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口返回参数修改
parent
7ab0ea37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
Suning.php
application/controllers/test/Suning.php
+18
-6
SourceSuning.php
application/libraries/Source/SourceSuning.php
+3
-1
No files found.
application/controllers/test/Suning.php
View file @
43857074
...
@@ -39,7 +39,19 @@ class Suning extends BaseController
...
@@ -39,7 +39,19 @@ class Suning extends BaseController
public
function
test
()
public
function
test
()
{
{
$sobj
=
$this
->
sourceObj
();
$sobj
=
$this
->
sourceObj
();
$result
=
$sobj
->
ServiceOrderCondition
(
1
);
$post
=
[
'mark'
=>
'1'
,
'siteBp'
=>
'869218'
,
'objectIds'
=>
''
,
'phone'
=>
''
,
'startTime'
=>
'2016-11-09'
,
'endTime'
=>
'2016-11-29'
,
'processTypeName'
=>
''
,
'processType'
=>
''
,
'orderStatusName'
=>
''
,
'orderStatus'
=>
''
,
];
$result
=
$sobj
->
SelectServiceOrder
(
$post
);
var_dump
(
$result
);
var_dump
(
$result
);
}
}
...
@@ -76,8 +88,8 @@ class Suning extends BaseController
...
@@ -76,8 +88,8 @@ class Suning extends BaseController
'pwd'
=>
self
::
$testp
,
'pwd'
=>
self
::
$testp
,
'mark'
=>
'1'
,
'mark'
=>
'1'
,
'siteBp'
=>
'869218'
,
'siteBp'
=>
'869218'
,
'startTime'
=>
'20161
025
'
,
'startTime'
=>
'20161
109
'
,
'endTime'
=>
'20161
213
'
,
'endTime'
=>
'20161
129
'
,
'objectIds'
=>
''
,
'objectIds'
=>
''
,
'phone'
=>
''
,
'phone'
=>
''
,
];
];
...
@@ -90,7 +102,7 @@ class Suning extends BaseController
...
@@ -90,7 +102,7 @@ class Suning extends BaseController
$url
=
self
::
$apiUrl
.
"api/suning/selectServiceOrder"
;
$url
=
self
::
$apiUrl
.
"api/suning/selectServiceOrder"
;
$result
=
curl_post
(
$url
,
$values
);
$result
=
curl_post
(
$url
,
$values
);
//
$result['data'] = json_decode($result['data'], true);
$result
[
'data'
]
=
json_decode
(
$result
[
'data'
],
true
);
$this
->
show
(
$result
);
$this
->
show
(
$result
);
}
}
...
@@ -160,8 +172,8 @@ class Suning extends BaseController
...
@@ -160,8 +172,8 @@ class Suning extends BaseController
$object
=
[
$object
=
[
[
[
'srvOrder'
=>
'7
215840807
'
,
'srvOrder'
=>
'7
352707839
'
,
'processType'
=>
'ZS0
6
'
'processType'
=>
'ZS0
1
'
]
]
];
];
...
...
application/libraries/Source/SourceSuning.php
View file @
43857074
...
@@ -411,11 +411,12 @@ class SourceSuning extends Source
...
@@ -411,11 +411,12 @@ class SourceSuning extends Source
$vcresult
[
'data'
]
=
$this
->
HandelHtmlScript
(
$vcresult
[
'data'
]);
$vcresult
[
'data'
]
=
$this
->
HandelHtmlScript
(
$vcresult
[
'data'
]);
preg_match
(
'/errorCode = "([^"]+)"/'
,
$vcresult
[
'data'
],
$vcErrorCode
);
preg_match
(
'/errorCode = "([^"]+)"/'
,
$vcresult
[
'data'
],
$vcErrorCode
);
$tempErrorCode
=
isset
(
$vcErrorCode
[
1
])
?
$vcErrorCode
[
1
]
:
''
;
//debug
//debug
$this
->
Debug
(
'Loing-needVerifyCode'
,
[
$post
,
$vcresult
,
$vcErrorCode
]);
$this
->
Debug
(
'Loing-needVerifyCode'
,
[
$post
,
$vcresult
,
$vcErrorCode
]);
$vcHandelResult
=
$this
->
HandelLoginReturnMsg
(
$
vcErrorCode
[
1
]
,
$vcresult
[
'data'
],
$post
);
$vcHandelResult
=
$this
->
HandelLoginReturnMsg
(
$
tempErrorCode
,
$vcresult
[
'data'
],
$post
);
$result
=
array_merge
(
$vcresult
,
$vcHandelResult
);
$result
=
array_merge
(
$vcresult
,
$vcHandelResult
);
}
else
{
}
else
{
$handelResult
=
$this
->
HandelLoginReturnMsg
(
$errorCode
[
1
],
$result
[
'data'
],
$post
);
$handelResult
=
$this
->
HandelLoginReturnMsg
(
$errorCode
[
1
],
$result
[
'data'
],
$post
);
...
@@ -496,6 +497,7 @@ class SourceSuning extends Source
...
@@ -496,6 +497,7 @@ class SourceSuning extends Source
case
"highRiskAccount"
:
case
"highRiskAccount"
:
return_msg
(
false
,
"该账号密码存在风险,请您点击忘记密码重置密码后再登录"
);
return_msg
(
false
,
"该账号密码存在风险,请您点击忘记密码重置密码后再登录"
);
break
;
break
;
}
}
return
$result
;
return
$result
;
...
...
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