|
@@ -115,26 +115,27 @@ class Cashier extends BaseController
|
|
|
*/
|
|
|
public function getCommonCustomerInfo()
|
|
|
{
|
|
|
- if(empty($this->onlineEnterpriseId)){
|
|
|
- parent::sendOutput('企业信息不存在', ErrorCode::$paramError);
|
|
|
- }
|
|
|
- $params['enterpriseId'] = $this->onlineEnterpriseId;
|
|
|
-
|
|
|
- $result = $this->objMEnterprise->getEnterpriseInfo($params);
|
|
|
- if (!$result->isSuccess()) {
|
|
|
- parent::sendOutput($result->getData(), $result->getErrorCode());
|
|
|
- }
|
|
|
- $data = $result->getData();
|
|
|
- if(empty($data )){
|
|
|
- parent::sendOutput('企业信息不存在', ErrorCode::$paramError);
|
|
|
- }
|
|
|
-// $mobile = $data["commonCashierCustomerMobile"];
|
|
|
- $mobile = "13600000001";
|
|
|
- $result = $this->objMCashier->searchCustomerDetails($mobile);
|
|
|
- if (!$result->isSuccess()) {
|
|
|
- parent::sendOutput($result->getData(), $result->getErrorCode());
|
|
|
- }
|
|
|
- parent::sendOutput($result->getData());
|
|
|
+ var_dump("xxxaa");
|
|
|
+// if(empty($this->onlineEnterpriseId)){
|
|
|
+// parent::sendOutput('企业信息不存在', ErrorCode::$paramError);
|
|
|
+// }
|
|
|
+// $params['enterpriseId'] = $this->onlineEnterpriseId;
|
|
|
+//
|
|
|
+// $result = $this->objMEnterprise->getEnterpriseInfo($params);
|
|
|
+// if (!$result->isSuccess()) {
|
|
|
+// parent::sendOutput($result->getData(), $result->getErrorCode());
|
|
|
+// }
|
|
|
+// $data = $result->getData();
|
|
|
+// if(empty($data )){
|
|
|
+// parent::sendOutput('企业信息不存在', ErrorCode::$paramError);
|
|
|
+// }
|
|
|
+//// $mobile = $data["commonCashierCustomerMobile"];
|
|
|
+// $mobile = "13600000001";
|
|
|
+// $result = $this->objMCashier->searchCustomerDetails($mobile);
|
|
|
+// if (!$result->isSuccess()) {
|
|
|
+// parent::sendOutput($result->getData(), $result->getErrorCode());
|
|
|
+// }
|
|
|
+// parent::sendOutput($result->getData());
|
|
|
}
|
|
|
|
|
|
/**
|