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
d5b5a1b9
Commit
d5b5a1b9
authored
Oct 26, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对外相关接口开发
parent
91d84bd3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
3 deletions
+34
-3
Suning.php
application/controllers/api/Suning.php
+18
-0
ReceiveSuning.php
application/libraries/Receive/ReceiveSuning.php
+8
-0
Source.php
application/libraries/Source/Source.php
+1
-1
SourceSuning.php
application/libraries/Source/SourceSuning.php
+7
-2
No files found.
application/controllers/api/Suning.php
View file @
d5b5a1b9
...
@@ -62,6 +62,24 @@ class Suning extends BaseController
...
@@ -62,6 +62,24 @@ class Suning extends BaseController
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
}
}
//服务订单作业查询
public
function
receiveServiceOrder
()
{
$param
=
$this
->
input
->
post
();
//验证参数
$obj
=
$this
->
receiveObj
();
$obj
->
SetValues
(
$param
);
$obj
->
CheckReceiveServiceOrderValues
();
$values
=
$obj
->
GetValues
();
$this
->
saveLog
(
''
,
'receiveServiceOrder'
,
$values
);
$sourceObj
=
$this
->
sourceObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$result
=
$sourceObj
->
ReceiveServiceOrder
(
$values
[
'object'
]);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
}
//服务订单查询条件
//服务订单查询条件
public
function
selectServiceOrderCondition
()
public
function
selectServiceOrderCondition
()
{
{
...
...
application/libraries/Receive/ReceiveSuning.php
View file @
d5b5a1b9
...
@@ -34,6 +34,14 @@ class ReceiveSuning extends Receive
...
@@ -34,6 +34,14 @@ class ReceiveSuning extends Receive
}
}
}
}
public
function
CheckReceiveServiceOrderValues
()
{
$fileds
=
[
'object'
];
$this
->
CheckValues
(
$fileds
);
$this
->
values
[
'object'
]
=
json_decode
(
$this
->
values
[
'object'
],
true
);
}
public
function
CheckSelectServiceOrderConditionValues
()
public
function
CheckSelectServiceOrderConditionValues
()
{
{
$this
->
CheckValues
();
$this
->
CheckValues
();
...
...
application/libraries/Source/Source.php
View file @
d5b5a1b9
application/libraries/Source/SourceSuning.php
View file @
d5b5a1b9
...
@@ -168,7 +168,12 @@ class SourceSuning extends Source
...
@@ -168,7 +168,12 @@ class SourceSuning extends Source
//debug
//debug
$this
->
Debug
(
'ReceiveServiceOrder'
,
$result
);
$this
->
Debug
(
'ReceiveServiceOrder'
,
$result
);
return
$result
;
$res
=
[];
if
(
isset
(
$result
[
'data'
])
&&
$result
[
'data'
])
{
$res
=
json_decode
(
$result
[
'data'
],
true
);
}
return
$res
;
}
}
/**
/**
...
@@ -639,7 +644,7 @@ class SourceSuning extends Source
...
@@ -639,7 +644,7 @@ class SourceSuning extends Source
{
{
$result
=
parent
::
CurlPostHttps
(
$url
,
$post
,
$headers
,
$type
);
$result
=
parent
::
CurlPostHttps
(
$url
,
$post
,
$headers
,
$type
);
if
(
$result
[
'data'
])
{
if
(
isset
(
$result
[
'data'
])
&&
$result
[
'data'
])
{
$result
[
'data'
]
=
gzdecode
(
$result
[
'data'
]);
$result
[
'data'
]
=
gzdecode
(
$result
[
'data'
]);
}
}
...
...
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