Commit 7ab0ea37 authored by 蒋林's avatar 蒋林

接口返回参数修改

parent 70865734
......@@ -27,10 +27,11 @@ class Suning extends BaseController
self::$apiUrl = "http://{$_SERVER['HTTP_HOST']}/";
$account = [
0 => ['u' => '深圳唯修汇科技有限公司', 'p' => 'weixiuhui2015'],
0 => ['u' => '深圳唯修汇科技有限公司', 'p' => 'weixiuhui123456'],
1 => ['u' => '18771093166@163.com', 'p' => 'wgw19771230'],
];
$key = 0;
$key = 1;
self::$testu = $account[$key]['u'];
self::$testp = $account[$key]['p'];
}
......@@ -74,9 +75,9 @@ class Suning extends BaseController
'account' => self::$testu,
'pwd' => self::$testp,
'mark' => '1',
'siteBp' => '904102',
'siteBp' => '869218',
'startTime' => '20161025',
'endTime' => '20161113',
'endTime' => '20161213',
'objectIds' => '',
'phone' => '',
];
......@@ -127,9 +128,9 @@ class Suning extends BaseController
'account' => self::$testu,
'pwd' => self::$testp,
'type' => '1',
'siteBp' => '904102',
'siteBp' => '869218',
'startTime' => '20161106',
'endTime' => '20161123',
'endTime' => '20161223',
'objectIds' => ''
];
......
......@@ -282,7 +282,7 @@ class SourceSuning extends Source
foreach ($val as $vall) {
if (stripos($vall, '||=') !== false) {
$vall = explode("||=", $vall);
$order[$key][strtolower($vall[0])] = $vall[1];
$order[$key][$vall[0]] = $vall[1];
}
}
}
......
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