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
9351f25c
Commit
9351f25c
authored
Dec 23, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海信 - 工单系列操作接口
parent
9a773bc0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
13 deletions
+52
-13
Chigo.php
application/controllers/test/Chigo.php
+3
-2
Galanz.php
application/controllers/test/Galanz.php
+8
-5
Hisense.php
application/controllers/test/Hisense.php
+1
-1
ReceiveGalanz.php
application/libraries/Receive/ReceiveGalanz.php
+15
-0
SourceChigo.php
application/libraries/Source/SourceChigo.php
+19
-5
SourceGalanz.php
application/libraries/Source/SourceGalanz.php
+6
-0
No files found.
application/controllers/test/Chigo.php
View file @
9351f25c
...
@@ -29,9 +29,10 @@ class Chigo extends BaseController
...
@@ -29,9 +29,10 @@ class Chigo extends BaseController
$account
=
[
$account
=
[
0
=>
[
'u'
=>
'0200145'
,
'p'
=>
'123456'
],
0
=>
[
'u'
=>
'0200145'
,
'p'
=>
'123456'
],
1
=>
[
'u'
=>
'0100259'
,
'p'
=>
'123456'
],
];
];
$key
=
0
;
$key
=
1
;
self
::
$testu
=
$account
[
$key
][
'u'
];
self
::
$testu
=
$account
[
$key
][
'u'
];
self
::
$testp
=
$account
[
$key
][
'p'
];
self
::
$testp
=
$account
[
$key
][
'p'
];
}
}
...
@@ -80,7 +81,7 @@ class Chigo extends BaseController
...
@@ -80,7 +81,7 @@ class Chigo extends BaseController
'mobile'
=>
''
,
'mobile'
=>
''
,
'phone'
=>
''
,
'phone'
=>
''
,
'read_state'
=>
''
,
'read_state'
=>
''
,
'ano'
=>
'0020201610125742'
,
//
'ano' => '0020201610125742',
];
];
$this
->
httpPost
(
'facilitatorReservation'
,
$post
);
$this
->
httpPost
(
'facilitatorReservation'
,
$post
);
...
...
application/controllers/test/Galanz.php
View file @
9351f25c
...
@@ -203,7 +203,7 @@ class Galanz extends BaseController
...
@@ -203,7 +203,7 @@ class Galanz extends BaseController
$data
[
'appid'
]
=
'10001'
;
$data
[
'appid'
]
=
'10001'
;
$data
[
'account'
]
=
self
::
$testu
;
$data
[
'account'
]
=
self
::
$testu
;
$data
[
'pwd'
]
=
self
::
$testp
;
$data
[
'pwd'
]
=
self
::
$testp
;
$data
[
'id'
]
=
'
677beebf-ace7-4dc0-8a58-d2a4e7d3622
'
;
$data
[
'id'
]
=
'
5eb38919-86d0-4e31-83ee-c35f761f9257
'
;
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$obj
->
SetValues
(
$data
);
$obj
->
SetValues
(
$data
);
...
@@ -213,7 +213,7 @@ class Galanz extends BaseController
...
@@ -213,7 +213,7 @@ class Galanz extends BaseController
$url
=
self
::
$apiUrl
.
"api/galanz/queryWorkOrder"
;
$url
=
self
::
$apiUrl
.
"api/galanz/queryWorkOrder"
;
$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
[
'data'
]);
$this
->
show
(
$result
[
'data'
]);
}
}
...
@@ -601,19 +601,22 @@ class Galanz extends BaseController
...
@@ -601,19 +601,22 @@ class Galanz extends BaseController
'appid'
=>
'10001'
,
'appid'
=>
'10001'
,
'account'
=>
self
::
$testu
,
'account'
=>
self
::
$testu
,
'pwd'
=>
self
::
$testp
,
'pwd'
=>
self
::
$testp
,
'
work_order_no'
=>
'WO2016092002698
'
,
'
id'
=>
'5eb38919-86d0-4e31-83ee-c35f761f9257
'
,
'custname'
=>
''
,
'custname'
=>
''
,
'custmobile'
=>
''
,
'custmobile'
=>
''
,
'address'
=>
''
,
'address'
=>
''
,
'shipdate'
=>
strtotime
(
'2015-05-18'
)
,
'shipdate'
=>
''
,
'broughtdate'
=>
''
,
'broughtdate'
=>
''
,
'installdate'
=>
''
,
'installdate'
=>
''
,
'visittime'
=>
''
,
'visittime'
=>
''
,
'actualvisittime'
=>
strtotime
(
'2016-09-12 16:00:00'
)
,
'actualvisittime'
=>
''
,
'finishtime'
=>
''
,
'finishtime'
=>
''
,
'repairapply'
=>
''
,
'repairapply'
=>
''
,
'fault'
=>
''
,
'fault'
=>
''
,
'parts'
=>
''
,
'parts'
=>
''
,
'isremote'
=>
''
,
//是否远程
'scope'
=>
'2'
,
//上门范围
'distancekm'
=>
''
,
//上门距离
];
];
// $machine = [
// $machine = [
...
...
application/controllers/test/Hisense.php
View file @
9351f25c
...
@@ -41,7 +41,7 @@ class Hisense extends BaseController
...
@@ -41,7 +41,7 @@ class Hisense extends BaseController
$sobj
=
$this
->
sourceObj
();
$sobj
=
$this
->
sourceObj
();
$res
=
$sobj
->
WorkOrder
Do
(
'accept'
,
'ZJ16122203844434'
);
$res
=
$sobj
->
WorkOrder
List
(
);
print_r
(
$res
);
print_r
(
$res
);
}
}
...
...
application/libraries/Receive/ReceiveGalanz.php
View file @
9351f25c
...
@@ -210,6 +210,9 @@ class ReceiveGalanz extends Receive
...
@@ -210,6 +210,9 @@ class ReceiveGalanz extends Receive
'visittime'
,
//预约上门时间
'visittime'
,
//预约上门时间
'actualvisittime'
,
//实际上门时间
'actualvisittime'
,
//实际上门时间
'finishtime'
,
//完成时间
'finishtime'
,
//完成时间
'isremote'
,
//是否远程
'scope'
,
//上门范围
'distancekm'
,
//上门距离
'repairapply'
,
//维修人员
'repairapply'
,
//维修人员
'machine'
,
//机器信息
'machine'
,
//机器信息
'fault'
,
//故障信息
'fault'
,
//故障信息
...
@@ -252,6 +255,18 @@ class ReceiveGalanz extends Receive
...
@@ -252,6 +255,18 @@ class ReceiveGalanz extends Receive
$order
[
'new_repairapply'
]
=
$values
[
'repairapply'
];
$order
[
'new_repairapply'
]
=
$values
[
'repairapply'
];
}
}
if
(
$values
[
'isremote'
])
{
$order
[
'new_isremote'
]
=
1
;
}
else
{
$order
[
'new_isremote'
]
=
''
;
}
if
(
$values
[
'scope'
])
{
$order
[
'new_scope'
]
=
in_array
(
$values
[
'scope'
],
[
1
,
2
,
3
])
?
$values
[
'scope'
]
:
''
;
}
if
(
$values
[
'distancekm'
])
{
$order
[
'new_distancekm'
]
=
$values
[
'distancekm'
];
}
//处理机器信息参数
//处理机器信息参数
if
(
$values
[
'machine'
])
{
if
(
$values
[
'machine'
])
{
$machine
=
json_decode
(
$values
[
'machine'
],
true
);
$machine
=
json_decode
(
$values
[
'machine'
],
true
);
...
...
application/libraries/Source/SourceChigo.php
View file @
9351f25c
...
@@ -59,6 +59,24 @@ class SourceChigo extends Source
...
@@ -59,6 +59,24 @@ class SourceChigo extends Source
return
$data
;
return
$data
;
}
}
/**
* 呼叫受理-业务-服务商预约-查阅
* @param $ano
* @return array
*/
public
function
FacilitatorReservationReceive
(
$ano
)
{
$post
=
[
'ano'
=>
$ano
];
$this
->
HandelAction
(
'CallAcceptAction'
,
'QueryRemainTime'
,
$post
);
$data
=
$this
->
HandelAction
(
'CallAcceptAction'
,
'UpdateReadState'
,
$post
);
return
$data
;
}
/**
/**
* 呼叫受理-业务-上门服务
* 呼叫受理-业务-上门服务
* @param $condition
* @param $condition
...
@@ -296,11 +314,7 @@ class SourceChigo extends Source
...
@@ -296,11 +314,7 @@ class SourceChigo extends Source
break
;
break
;
default
:
default
:
$url
=
''
;
return_msg
(
false
,
'请求参数错误'
);
}
if
(
$url
==
''
)
{
return_msg
(
false
,
'请求参数错误'
);
}
}
//debug
//debug
...
...
application/libraries/Source/SourceGalanz.php
View file @
9351f25c
...
@@ -1555,6 +1555,12 @@ class SourceGalanz extends Source
...
@@ -1555,6 +1555,12 @@ class SourceGalanz extends Source
'ctl00$ContentData$new_othersuggest'
=>
$data
[
'new_othersuggest'
],
'ctl00$ContentData$new_othersuggest'
=>
$data
[
'new_othersuggest'
],
];
];
if
(
$data
[
'new_isremote'
])
{
$post
[
'ctl00$ContentData$new_isremote'
]
=
'on'
;
}
else
{
$post
[
'ctl00$ContentData$new_distancekm'
]
=
'0'
;
}
switch
(
$type
){
switch
(
$type
){
case
'Save'
:
case
'Save'
:
$post
[
'__EVENTTARGET'
]
=
'ctl00$ContentQuery$btnSave'
;
$post
[
'__EVENTTARGET'
]
=
'ctl00$ContentQuery$btnSave'
;
...
...
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