Commit 1701d516 authored by 蒋林's avatar 蒋林

苏宁业务修改

parent c8183734
......@@ -138,7 +138,7 @@ class Chigo extends BaseController
{
//记录日志
$this->load->model('api_log_model');
$this->api_log_model->add($search, 'suning', $method, $data);
$this->api_log_model->add($search, 'chigo', $method, $data);
}
private function sourceObj($username, $pwd)
......
......@@ -76,9 +76,9 @@ class Suning extends BaseController
'mark' => '1',
'siteBp' => '904102',
'startTime' => '20161025',
'endTime' => '20161110',
'endTime' => '20161113',
'objectIds' => '',
'phone' => '13423871233',
'phone' => '',
];
$data['nonce_str'] = $obj->GetNonceStr();
......@@ -89,7 +89,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);
}
......@@ -128,8 +128,8 @@ class Suning extends BaseController
'pwd' => self::$testp,
'type' => '1',
'siteBp' => '904102',
'startTime' => '20161026',
'endTime' => '20161110',
'startTime' => '20161106',
'endTime' => '20161113',
'objectIds' => ''
];
......@@ -159,7 +159,7 @@ class Suning extends BaseController
$object = [
[
'srvOrder' => '7215781123',
'srvOrder' => '7215839556',
'processType' => 'ZS06'
]
];
......
......@@ -248,7 +248,7 @@ class Receive
protected function DateFormatValues($date, $format='Y-m-d')
{
if (empty($val)) {
if (empty($date)) {
return $date;
}
......@@ -257,7 +257,7 @@ class Receive
protected function TimeFormatValues($time, $format='Y-m-d')
{
if (empty($val)) {
if (empty($time)) {
return $time;
}
......
......@@ -25,7 +25,7 @@ class ReceiveSuning extends Receive
'processType',
];
$this->SetDefaultValues($dfields);
$this->values['startTime'] = $this->DateFormatValues($this->values['startTime']);
$this->values['endTime'] = $this->DateFormatValues($this->values['endTime']);
}
......
......@@ -77,8 +77,6 @@ class SourceSuning extends Source
'processType' => $condition['processType'] //订单类型编号
];
//return_msg(true, '', $post);
//debug
$this->Debug('ServiceOrder-condition', $post);
......@@ -244,7 +242,7 @@ class SourceSuning extends Source
//debug
$this->Debug('ServiceOrderTab1-table', $table);
if (!isset($table[0]) && !$table[0]) {
if (!isset($table[0])) {
return $order;
}
......
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