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
5878468d
Commit
5878468d
authored
Jan 04, 2017
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
志高-服务商预约-查阅
parent
c221de1e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
89 additions
and
110 deletions
+89
-110
Chigo.php
application/controllers/api/Chigo.php
+17
-0
Chigo.php
application/controllers/test/Chigo.php
+21
-12
Galanz.php
application/controllers/test/Galanz.php
+1
-1
ReceiveChigo.php
application/libraries/Receive/ReceiveChigo.php
+6
-0
SourceChigo.php
application/libraries/Source/SourceChigo.php
+7
-7
chigo.md
docs/chigo.md
+37
-90
No files found.
application/controllers/api/Chigo.php
View file @
5878468d
...
@@ -37,6 +37,23 @@ class Chigo extends BaseController
...
@@ -37,6 +37,23 @@ class Chigo extends BaseController
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
}
}
public
function
facilitatorReservationReceive
()
{
$param
=
$this
->
input
->
post
();
//验证参数
$obj
=
$this
->
receiveObj
();
$obj
->
SetValues
(
$param
);
$obj
->
CheckFacilitatorReservationReceiveValues
();
$values
=
$obj
->
GetValues
();
$this
->
saveLog
(
''
,
'facilitatorReservationReceive'
,
$values
);
$sourceObj
=
$this
->
sourceObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$result
=
$sourceObj
->
FacilitatorReservationReceive
(
$values
[
'ano'
]);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
}
//呼叫受理-业务-上门服务
//呼叫受理-业务-上门服务
public
function
visitingService
()
public
function
visitingService
()
{
{
...
...
application/controllers/test/Chigo.php
View file @
5878468d
...
@@ -41,16 +41,16 @@ class Chigo extends BaseController
...
@@ -41,16 +41,16 @@ class Chigo extends BaseController
{
{
$sobj
=
$this
->
sourceObj
();
$sobj
=
$this
->
sourceObj
();
$data
=
[
//
$data = [
'input_date_begin'
=>
'2016-10-01'
,
//
'input_date_begin' => '2016-10-01',
'input_date_end'
=>
'2016-11-08'
,
//
'input_date_end' => '2016-11-08',
'node_id'
=>
'0200145'
,
//
'node_id' => '0200145',
'repair_date_begin'
=>
''
,
//
'repair_date_begin' => '',
'repair_date_end'
=>
''
,
//
'repair_date_end' => '',
'repair_no'
=>
'201609235'
,
//
'repair_no' => '201609235',
];
//
];
$res
=
$sobj
->
QueryRepairBill
(
$data
);
$res
=
$sobj
->
FacilitatorReservationReceive
(
"0316201701035312"
);
$this
->
show
(
$res
);
$this
->
show
(
$res
);
}
}
...
@@ -76,17 +76,26 @@ class Chigo extends BaseController
...
@@ -76,17 +76,26 @@ class Chigo extends BaseController
public
function
facilitatorReservation
()
public
function
facilitatorReservation
()
{
{
$post
=
[
$post
=
[
'adat_begin'
=>
'
20161012
'
,
'adat_begin'
=>
''
,
'adat_end'
=>
'
20161102
'
,
'adat_end'
=>
''
,
'mobile'
=>
''
,
'mobile'
=>
''
,
'phone'
=>
''
,
'phone'
=>
''
,
'read_state'
=>
''
,
'read_state'
=>
''
,
//'ano' => '0020201610125742
',
'ano'
=>
'
'
,
];
];
$this
->
httpPost
(
'facilitatorReservation'
,
$post
);
$this
->
httpPost
(
'facilitatorReservation'
,
$post
);
}
}
public
function
facilitatorReservationReceive
()
{
$post
=
[
'ano'
=>
'0316201701046073'
,
];
$this
->
httpPost
(
'facilitatorReservationReceive'
,
$post
);
}
public
function
visitingService
()
public
function
visitingService
()
{
{
$post
=
[
$post
=
[
...
...
application/controllers/test/Galanz.php
View file @
5878468d
...
@@ -233,7 +233,7 @@ class Galanz extends BaseController
...
@@ -233,7 +233,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'
]
=
'
c9ac9231-2189-44d9-be34-e19aede8895f
'
;
$data
[
'id'
]
=
'
5f0bb6cc-ae4c-44ec-a9f2-687bafd696d8
'
;
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$obj
->
SetValues
(
$data
);
$obj
->
SetValues
(
$data
);
...
...
application/libraries/Receive/ReceiveChigo.php
View file @
5878468d
...
@@ -32,6 +32,12 @@ class ReceiveChigo extends Receive
...
@@ -32,6 +32,12 @@ class ReceiveChigo extends Receive
$this
->
values
[
'read_state'
]
=
$this
->
SelectValues
(
$this
->
values
[
'read_state'
],
$select
);
$this
->
values
[
'read_state'
]
=
$this
->
SelectValues
(
$this
->
values
[
'read_state'
],
$select
);
}
}
public
function
CheckFacilitatorReservationReceiveValues
()
{
$fileds
=
[
'ano'
];
$this
->
CheckValues
(
$fileds
);
}
public
function
CheckVisitingServiceValues
()
public
function
CheckVisitingServiceValues
()
{
{
$fileds
=
[];
$fileds
=
[];
...
...
application/libraries/Source/SourceChigo.php
View file @
5878468d
...
@@ -71,10 +71,9 @@ class SourceChigo extends Source
...
@@ -71,10 +71,9 @@ class SourceChigo extends Source
];
];
$this
->
HandelAction
(
'CallAcceptAction'
,
'QueryRemainTime'
,
$post
);
$this
->
HandelAction
(
'CallAcceptAction'
,
'QueryRemainTime'
,
$post
);
$this
->
HandelAction
(
'CallAcceptAction'
,
'UpdateReadState'
,
$post
);
$data
=
$this
->
HandelAction
(
'CallAcceptAction'
,
'UpdateReadState'
,
$post
);
return
$this
->
FacilitatorReservation
(
$post
);
return
$data
;
}
}
/**
/**
...
@@ -317,12 +316,13 @@ class SourceChigo extends Source
...
@@ -317,12 +316,13 @@ class SourceChigo extends Source
return_msg
(
false
,
'请求参数错误'
);
return_msg
(
false
,
'请求参数错误'
);
}
}
$xml
=
$this
->
ArrayToXml
(
$type
,
$post
);
$result
=
$this
->
CurlPostXml
(
$url
,
$xml
);
$data
=
$this
->
XmlToArray
(
$result
[
'data'
]);
//debug
//debug
$this
->
Debug
(
$type
,
$post
);
$this
->
Debug
(
$type
,
$post
);
$this
->
Debug
(
$type
,
$result
);
$xml
=
$this
->
ArrayToXml
(
$type
,
$post
);
$data
=
$this
->
CurlPostXml
(
$url
,
$xml
);
$data
=
$this
->
XmlToArray
(
$data
[
'data'
]);
return
$data
;
return
$data
;
}
}
...
...
docs/chigo.md
View file @
5878468d
...
@@ -33,98 +33,45 @@ API域名: http://pp.weixiuhui.cn
...
@@ -33,98 +33,45 @@ API域名: http://pp.weixiuhui.cn
返回内容 | return_data | 否 | Array | |
返回内容 | return_data | 否 | Array | |
```
```
Array
{"return_code":"SUCCESS","return_msg":"成功","return_data":[{"ano":"0316201701035312","apeo":"天猫旗舰店","auni":"客户服务部","adat":"2017-01-03T19:07:31.0","dupl":"","zcod":"0316","tele":"","extc":"","mobi":"13463621253","cent":"北京中心","cuna":"李静红","addr":"河北省廊坊市大城县南赵扶镇张庄(商庄子与泊庄中间)","shop":"志高空调官方旗舰店","mdel":"NEW-GV12BT9H3Y2","buyd":"2016-12-31T00:00:00.0","make":"志高","inst":"","ttyp":"报装","urge":"一般客户","remo":"0","insu":"1","fapp":"","oapp":"","afba":"天猫购买1套空调,天猫工单号: 16881471, 请求上门安装.","arem":"","hway":"委派服务商上门服务","sern":"0100259","serc":"北京二分明月科技有限公司","requ":"2017-01-04T09:39:44.0","opeo":"陈永艳","opdt":"2017-01-04T08:40:25.0","ifco":"","coti":"","reno":"","serp":"","fida":"","seti":"","notr":"","mres":"","resu":"","reci":"Y","hand":"1","reti":"2017-01-04T11:20:57.0","reqt":"1","rept":"1","smsm":"","unid":"","lock_flag":"","kaohe_flag":"","remo_dist":"","type":"家用","rs_lock_by":"","rs_lock_time":"","need_revisit":"1","ctype":"家用","ischeck":"","checkdate":"","checktime":"","checkday":"","checkjiangli":"","check_back":"","reor":"","ser_mobile":"18500971165","center_tel":"87744102","send_to_ser":"0","ser_tel":"18500971165","jyy":"","jwj":"","dtwcl":"","org_tele":"","org_mobi":"","org_ano":"","daib":"","src":"","dqbm":"131025103","remo_d":"否","ifco_d":"","remaintime":"0","elapse_time":"8.20069444444444444444444444444444444444E-01"},{"ano":"0316201701046073","apeo":"田聪","auni":"志高总部,客户服务部","adat":"2017-01-04T10:43:07.0","dupl":"","zcod":"0316","tele":"","extc":"","mobi":"13603163770","cent":"北京中心","cuna":"张先生","addr":"河北省廊坊市大城县正大街日泰李庄 电联","shop":"中盛家电","mdel":"柜机","buyd":"2013-01-01T00:00:00.0","make":"志高","inst":"","ttyp":"保内报修","urge":"一般客户","remo":"0","insu":"1","fapp":"","oapp":"效果不良(制冷\/制热)","afba":"制热效果不好 已清洗过滤网 尽快联系","arem":"","hway":"委派服务商上门服务","sern":"0100259","serc":"北京二分明月科技有限公司","requ":"2017-01-04T12:55:29.0","opeo":"陈永艳","opdt":"2017-01-04T11:56:08.0","ifco":"","coti":"","reno":"","serp":"","fida":"","seti":"","notr":"","mres":"","resu":"","reci":"","hand":"1","reti":"","reqt":"0","rept":"1","smsm":"","unid":"","lock_flag":"","kaohe_flag":"","remo_dist":"","type":"家用","rs_lock_by":"","rs_lock_time":"","need_revisit":"1","ctype":"家用","ischeck":"","checkdate":"","checktime":"","checkday":"","checkjiangli":"","check_back":"","reor":"","ser_mobile":"18500971165","center_tel":"87744102","send_to_ser":"0","ser_tel":"18500971165","jyy":"","jwj":"","dtwcl":"","org_tele":"","org_mobi":"13603163770","org_ano":"","daib":"","src":"","dqbm":"","remo_d":"否","ifco_d":"","remaintime":"0","elapse_time":"1.70347222222222222222222222222222222222E-01"}]}
(
```
[return_code] => SUCCESS
[return_msg] => 成功
[return_data] => Array
(
[0] => Array
(
[ano] => 0020201610125742
[apeo] => 陈丹婷
[auni] => 志高总部,客户服务部
[adat] => 2016-10-12T12:34:22.0
[dupl] =>
[zcod] => 0020
[tele] =>
[extc] =>
[mobi] => 13316107377
[cent] => 广州中心
[cuna] => 陈先生
[addr] => 广东省广州市南沙区环市大道越秀滨海新城15栋2201
[shop] => 京东
[mdel] => 挂机
[buyd] => 2016-05-01T00:00:00.0
[make] => 志高
[inst] => 18665631879
[ttyp] => 保内报修
[urge] => 一般客户
[remo] => 0
[insu] => 1
[fapp] =>
[oapp] => 不制冷
[afba] => 内机漏水 来电要求尽快处理
[arem] =>
[hway] => 委派服务商上门服务
[sern] => 0200145
[serc] => 广州桥上网络科技有限公司
[requ] => 2016-10-12T14:49:36.0
[opeo] => 王娟kf
[opdt] => 2016-10-12T13:49:02.0
[ifco] =>
[coti] =>
[reno] =>
[serp] =>
[fida] =>
[seti] =>
[notr] =>
[mres] =>
[resu] =>
[reci] => Y
[hand] => 1
[reti] => 2016-10-12T13:49:21.0
[reqt] => 2
[rept] => 1
[smsm] =>
[unid] =>
[lock_flag] =>
[kaohe_flag] =>
[remo_dist] =>
[type] => 家用
[rs_lock_by] =>
[rs_lock_time] =>
[need_revisit] => 1
[ctype] => 家用
[ischeck] =>
[checkdate] =>
[checktime] =>
[checkday] =>
[checkjiangli] =>
[check_back] =>
[reor] =>
[ser_mobile] => 13286688768
[center_tel] => 36055720
[send_to_ser] => 0
[ser_tel] => 020-84347052
[jyy] =>
[jwj] =>
[dtwcl] => 1
[org_tele] =>
[org_mobi] => 13316107377
[org_ano] =>
[daib] =>
[src] =>
[dqbm] =>
[remo_d] => 否
[ifco_d] =>
[remaintime] => 0
[elapse_time] => 2.11104050925925925925925925925925925926E01
)
)
### 1.1 服务商预约-查阅
接口链接: /api/chigo/facilitatorReservationReceive
字段名 | 变量名 | 必填 | 类型 | 示例值 | 描述
---|---|---|---|---|---
账号ID | appid | 是 | String(32) | 10001
随机字符串 | nonce_str | 是 | String(32) | 76bt136lwffmhxdxykqmkej1hdhehcpn
签名 | sign | 是 | String(32) | 5K8264ILTKCH16CQ2502SI8ZNMTM67VS | 签名算法
账号 | account | 是 | String(32) | c01000005 |
密码 | pwd | 是 | String(32) | c01000005 |
受理单号 | ano | 否 | String(32) | 0020201610125742 |
###### 返回结果
字段名 | 变量名 | 必填 | 类型 | 示例值 | 描述
---|---|---|---|---|---
返回状态码 | return_code | 是 | String(32) | SUCCESS | SUCCESS/FAIL,是否成功需要查看result_code来判断
返回信息 | return_msg | 否 | String(128) | 签名失败 | 错误原因
返回内容 | return_data | 否 | Array | |
```
#已查阅
"reci": "Y",
"hand": "1",
"reti": "2017-01-04T11:20:57.0",
"reqt": "1",
"rept": "1",
#未查阅
"reci": "",
"hand": "1",
"reti": "",
"reqt": "0",
"rept": "1",
)
```
```
### 2. 上门服务
### 2. 上门服务
...
...
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