Commit 43857074 authored by 蒋林's avatar 蒋林

接口返回参数修改

parent 7ab0ea37
...@@ -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' => '20161025', 'startTime' => '20161109',
'endTime' => '20161213', 'endTime' => '20161129',
'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' => '7215840807', 'srvOrder' => '7352707839',
'processType' => 'ZS06' 'processType' => 'ZS01'
] ]
]; ];
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment