Commit 1731bf9a authored by 蒋林's avatar 蒋林

海信 - 工单系列操作接口

parent be44c35e
......@@ -666,7 +666,7 @@ class Galanz extends BaseController
$this->saveLog($values['errorpartsid'], 'lookupParts', $param);
$sourceGalanzObj = $this->sourceGalanzObj($values['account'], $values['pwd']);
$result = $sourceGalanzObj->LookupParts($values['siteid'], $values['errorpartsid']);
$result = $sourceGalanzObj->LookupParts($values['siteid'], $values['errorpartsid'], $values['search']);
$obj->ReturnMessage(true, '', $result);
}
......
......@@ -59,6 +59,35 @@ class Galanz extends BaseController
print_r($order);
}
public function lookupParts()
{
$obj = $this->galanzObj();
$data = [
'appid' => '10001',
'account' => self::$testu,
'pwd' => self::$testp,
'name' => '',
'siteid' => '7a41b551-9aca-439e-99ed-5f05e54477fc',
'errorpartsid' => 'c6f7c2e0-7371-422b-95e2-625076ddfd5b',
'search' => '253019000135',
];
$data['nonce_str'] = $obj->GetNonceStr();
$obj->SetValues($data);
$obj->SetSign();
$values = $obj->GetValues();
$url = self::$apiUrl . "api/galanz/lookupParts";
$result = curl_post($url, $values);
$result['data'] = json_decode($result['data'], true);
$this->show($result);
}
public function mail()
{
// $mail= '18611475060@163.com';
......
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