Commit 43857074 authored by 蒋林's avatar 蒋林

接口返回参数修改

parent 7ab0ea37
......@@ -39,7 +39,19 @@ class Suning extends BaseController
public function test()
{
$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);
}
......@@ -76,8 +88,8 @@ class Suning extends BaseController
'pwd' => self::$testp,
'mark' => '1',
'siteBp' => '869218',
'startTime' => '20161025',
'endTime' => '20161213',
'startTime' => '20161109',
'endTime' => '20161129',
'objectIds' => '',
'phone' => '',
];
......@@ -90,7 +102,7 @@ class Suning extends BaseController
$url = self::$apiUrl . "api/suning/selectServiceOrder";
$result = curl_post($url, $values);
//$result['data'] = json_decode($result['data'], true);
$result['data'] = json_decode($result['data'], true);
$this->show($result);
}
......@@ -160,8 +172,8 @@ class Suning extends BaseController
$object = [
[
'srvOrder' => '7215840807',
'processType' => 'ZS06'
'srvOrder' => '7352707839',
'processType' => 'ZS01'
]
];
......
......@@ -411,11 +411,12 @@ class SourceSuning extends Source
$vcresult['data'] = $this->HandelHtmlScript($vcresult['data']);
preg_match('/errorCode = "([^"]+)"/', $vcresult['data'], $vcErrorCode);
$tempErrorCode = isset($vcErrorCode[1]) ? $vcErrorCode[1] : '';
//debug
$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);
} else {
$handelResult = $this->HandelLoginReturnMsg($errorCode[1], $result['data'], $post);
......@@ -496,6 +497,7 @@ class SourceSuning extends Source
case "highRiskAccount":
return_msg(false, "该账号密码存在风险,请您点击忘记密码重置密码后再登录");
break;
}
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