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
1731bf9a
Commit
1731bf9a
authored
Dec 23, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海信 - 工单系列操作接口
parent
be44c35e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
Galanz.php
application/controllers/api/Galanz.php
+1
-1
Galanz.php
application/controllers/test/Galanz.php
+29
-0
No files found.
application/controllers/api/Galanz.php
View file @
1731bf9a
...
...
@@ -666,7 +666,7 @@ class Galanz extends BaseController
$this
->
saveLog
(
$values
[
'errorpartsid'
],
'lookupParts'
,
$param
);
$sourceGalanzObj
=
$this
->
sourceGalanzObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$result
=
$sourceGalanzObj
->
LookupParts
(
$values
[
'siteid'
],
$values
[
'errorpartsid'
]);
$result
=
$sourceGalanzObj
->
LookupParts
(
$values
[
'siteid'
],
$values
[
'errorpartsid'
]
,
$values
[
'search'
]
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
}
...
...
application/controllers/test/Galanz.php
View file @
1731bf9a
...
...
@@ -59,6 +59,35 @@ class Galanz extends BaseController
print_r
(
$order
);
}
public
function
lookupParts
()
{
$obj
=
$this
->
galanzObj
();
$data
=
[
'appid'
=>
'10001'
,
'account'
=>
self
::
$testu
,
'pwd'
=>
self
::
$testp
,
'name'
=>
''
,
'siteid'
=>
'7a41b551-9aca-439e-99ed-5f05e54477fc'
,
'errorpartsid'
=>
'c6f7c2e0-7371-422b-95e2-625076ddfd5b'
,
'search'
=>
'253019000135'
,
];
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$obj
->
SetValues
(
$data
);
$obj
->
SetSign
();
$values
=
$obj
->
GetValues
();
$url
=
self
::
$apiUrl
.
"api/galanz/lookupParts"
;
$result
=
curl_post
(
$url
,
$values
);
$result
[
'data'
]
=
json_decode
(
$result
[
'data'
],
true
);
$this
->
show
(
$result
);
}
public
function
mail
()
{
// $mail= '18611475060@163.com';
...
...
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