Commit 95824262 authored by 蒋林's avatar 蒋林

1. 更换方法名称

parent db3cce1f
...@@ -269,41 +269,43 @@ class Galanz extends BaseController ...@@ -269,41 +269,43 @@ class Galanz extends BaseController
} }
//安装单-添加明细信息 //安装单-添加明细信息
public function addMachineUserProfileOrder() public function addProductsUserProfileOrder()
{ {
$param = $this->input->post(); $param = $this->input->post();
//验证参数 //验证参数
$obj = $this->receiveGalanzObj(); $obj = $this->receiveGalanzObj();
$obj->SetValues($param); $obj->SetValues($param);
$obj->CheckAddMachineUserProfileOrderValues(); $obj->CheckAddProductsUserProfileOrderValues();
$values = $obj->GetValues(); $values = $obj->GetValues();
$this->saveLog($values['id'], 'addMachineUserProfileOrder', $param); $this->saveLog($values['id'], 'addProductsUserProfileOrder', $param);
$sourceGalanzObj = $this->sourceGalanzObj($values['account'], $values['pwd']); $sourceGalanzObj = $this->sourceGalanzObj($values['account'], $values['pwd']);
$order = $sourceGalanzObj->UserProfileOrderDetail($values['id']); $order = $sourceGalanzObj->UserProfileOrderDetail($values['id']);
$order = $obj->SetAddMachineUserProfileOrderValues($order, $values); $order = $obj->SetAddProductsUserProfileOrderValues($order, $values);
$result = $sourceGalanzObj->AddMachineUserProfileOrder($order['new_id'], $order); $result = $sourceGalanzObj->AddProductsUserProfileOrder($order['new_id'], $order);
$result = $this->diffOrder($result);
$obj->ReturnMessage(true, '', $result); $obj->ReturnMessage(true, '', $result);
} }
//安装单-删除明细信息 //安装单-删除明细信息
public function delMachineUserProfileOrder() public function delProductsUserProfileOrder()
{ {
$param = $this->input->post(); $param = $this->input->post();
//验证参数 //验证参数
$obj = $this->receiveGalanzObj(); $obj = $this->receiveGalanzObj();
$obj->SetValues($param); $obj->SetValues($param);
$obj->CheckDelMachineUserProfileOrderValues(); $obj->CheckDelProductsUserProfileOrderValues();
$values = $obj->GetValues(); $values = $obj->GetValues();
$this->saveLog($values['id'], 'delMachineUserProfileOrder', $param); $this->saveLog($values['id'], 'delMachineUserProfileOrder', $param);
$sourceGalanzObj = $this->sourceGalanzObj($values['account'], $values['pwd']); $sourceGalanzObj = $this->sourceGalanzObj($values['account'], $values['pwd']);
$order = $sourceGalanzObj->UserProfileOrderDetail($values['id']); $order = $sourceGalanzObj->UserProfileOrderDetail($values['id']);
$order = $obj->SetDelMachineUserProfileOrderValues($order, $values); $order = $obj->SetDelProductsUserProfileOrderValues($order, $values);
$result = $sourceGalanzObj->DelMachineUserProfileOrder($order['new_id'], $order); $result = $sourceGalanzObj->DelProductsUserProfileOrder($order['new_id'], $order);
$result = $this->diffOrder($result);
$obj->ReturnMessage(true, '', $result); $obj->ReturnMessage(true, '', $result);
} }
...@@ -323,6 +325,7 @@ class Galanz extends BaseController ...@@ -323,6 +325,7 @@ class Galanz extends BaseController
$sourceGalanzObj = $this->sourceGalanzObj($values['account'], $values['pwd']); $sourceGalanzObj = $this->sourceGalanzObj($values['account'], $values['pwd']);
$order = $sourceGalanzObj->UserProfileOrderDetail($values['id']); $order = $sourceGalanzObj->UserProfileOrderDetail($values['id']);
$result = $sourceGalanzObj->SendUserProfileOrder($order['new_id'], $order); $result = $sourceGalanzObj->SendUserProfileOrder($order['new_id'], $order);
$result = $this->diffOrder($result);
$obj->ReturnMessage(true, '', $result); $obj->ReturnMessage(true, '', $result);
} }
......
...@@ -576,8 +576,8 @@ class Rgalanz extends BaseController ...@@ -576,8 +576,8 @@ class Rgalanz extends BaseController
'installer' => '', //安装人员 'installer' => '', //安装人员
'goldcard' => '', //金卡 'goldcard' => '', //金卡
'remarks' => '', //备注 'remarks' => '', //备注
'qualityresult' => '1', 'qualityresult' => '',
'custadvice' => ' ', //顾客意见 'custadvice' => '', //顾客意见
]; ];
$data['nonce_str'] = $obj->GetNonceStr(); $data['nonce_str'] = $obj->GetNonceStr();
...@@ -593,7 +593,7 @@ class Rgalanz extends BaseController ...@@ -593,7 +593,7 @@ class Rgalanz extends BaseController
$this->show($result['data']); $this->show($result['data']);
} }
public function addMachineUserProfileOrder() public function addProductsUserProfileOrder()
{ {
$obj = $this->galanzObj(); $obj = $this->galanzObj();
...@@ -610,7 +610,7 @@ class Rgalanz extends BaseController ...@@ -610,7 +610,7 @@ class Rgalanz extends BaseController
$obj->SetSign(); $obj->SetSign();
$values = $obj->GetValues(); $values = $obj->GetValues();
$url = self::$apiUrl . "api/galanz/addMachineUserProfileOrder"; $url = self::$apiUrl . "api/galanz/addProductsUserProfileOrder";
$result = $this->curlPost($url, $values); $result = $this->curlPost($url, $values);
$result['data'] = json_decode($result['data'], true); $result['data'] = json_decode($result['data'], true);
...@@ -618,7 +618,7 @@ class Rgalanz extends BaseController ...@@ -618,7 +618,7 @@ class Rgalanz extends BaseController
$this->show($result['data']); $this->show($result['data']);
} }
public function delMachineUserProfileOrder() public function delProductsUserProfileOrder()
{ {
$obj = $this->galanzObj(); $obj = $this->galanzObj();
...@@ -627,7 +627,7 @@ class Rgalanz extends BaseController ...@@ -627,7 +627,7 @@ class Rgalanz extends BaseController
'account' => self::$testu, 'account' => self::$testu,
'pwd' => self::$testp, 'pwd' => self::$testp,
'id' => '1650bb3a-46b0-408c-9694-6549a8d9d068', 'id' => '1650bb3a-46b0-408c-9694-6549a8d9d068',
'chk' => 'de580f86-70db-4452-9c99-08d4aa273cbb' 'chk' => '22c31a3c-4d2c-48db-a12c-8be13602c926'
]; ];
$data['nonce_str'] = $obj->GetNonceStr(); $data['nonce_str'] = $obj->GetNonceStr();
...@@ -635,7 +635,7 @@ class Rgalanz extends BaseController ...@@ -635,7 +635,7 @@ class Rgalanz extends BaseController
$obj->SetSign(); $obj->SetSign();
$values = $obj->GetValues(); $values = $obj->GetValues();
$url = self::$apiUrl . "api/galanz/delMachineUserProfileOrder"; $url = self::$apiUrl . "api/galanz/delProductsUserProfileOrder";
$result = $this->curlPost($url, $values); $result = $this->curlPost($url, $values);
$result['data'] = json_decode($result['data'], true); $result['data'] = json_decode($result['data'], true);
......
...@@ -288,13 +288,13 @@ class ReceiveGalanz extends Receive ...@@ -288,13 +288,13 @@ class ReceiveGalanz extends Receive
$this->SetDefaultValues($dfields); $this->SetDefaultValues($dfields);
} }
public function CheckAddMachineUserProfileOrderValues() public function CheckAddProductsUserProfileOrderValues()
{ {
$fileds = ['id', 'producenumber']; $fileds = ['id', 'producenumber'];
$this->CheckValues($fileds); $this->CheckValues($fileds);
} }
public function SetAddMachineUserProfileOrderValues($order, $values) public function SetAddProductsUserProfileOrderValues($order, $values)
{ {
if ($values['producenumber']) { if ($values['producenumber']) {
$order['txtproducenumber'] = trim($values['producenumber']); $order['txtproducenumber'] = trim($values['producenumber']);
...@@ -303,13 +303,13 @@ class ReceiveGalanz extends Receive ...@@ -303,13 +303,13 @@ class ReceiveGalanz extends Receive
return $order; return $order;
} }
public function CheckDelMachineUserProfileOrderValues() public function CheckDelProductsUserProfileOrderValues()
{ {
$fileds = ['id', 'chk']; $fileds = ['id', 'chk'];
$this->CheckValues($fileds); $this->CheckValues($fileds);
} }
public function SetDelMachineUserProfileOrderValues($order, $values) public function SetDelProductsUserProfileOrderValues($order, $values)
{ {
if ($values['chk'] && $order['products']) { if ($values['chk'] && $order['products']) {
foreach ($order['products'] as $kk => $vv) { foreach ($order['products'] as $kk => $vv) {
......
...@@ -657,7 +657,7 @@ class SourceGalanz extends Source ...@@ -657,7 +657,7 @@ class SourceGalanz extends Source
* @param $data * @param $data
* @return mixed * @return mixed
*/ */
public function AddMachineUserProfileOrder($id, $data) public function AddProductsUserProfileOrder($id, $data)
{ {
$result = $this->HandelUserProfileOrder($id, $data, 'Add'); $result = $this->HandelUserProfileOrder($id, $data, 'Add');
$this->HandelOrderError($result); $this->HandelOrderError($result);
...@@ -671,7 +671,7 @@ class SourceGalanz extends Source ...@@ -671,7 +671,7 @@ class SourceGalanz extends Source
* @param $data * @param $data
* @return mixed * @return mixed
*/ */
public function DelMachineUserProfileOrder($id, $data) public function DelProductsUserProfileOrder($id, $data)
{ {
$result = $this->HandelUserProfileOrder($id, $data, 'Del'); $result = $this->HandelUserProfileOrder($id, $data, 'Del');
$this->HandelOrderError($result); $this->HandelOrderError($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