|
|
@@ -6,9 +6,11 @@ use JinDouYun\Controller\BaseController;
|
|
|
use JinDouYun\Model\Cashier\MCashier;
|
|
|
use JinDouYun\Model\Cashier\MCashierCart;
|
|
|
use JinDouYun\Model\Market\MCoupon;
|
|
|
+use JinDouYun\Model\Enterprise\MEnterprise;
|
|
|
use Mall\Framework\Core\ErrorCode;
|
|
|
use Mall\Framework\Core\StatusCode;
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* Description: 收银台,订单计算提成
|
|
|
* Class Cashier
|
|
|
@@ -115,27 +117,26 @@ class Cashier extends BaseController
|
|
|
*/
|
|
|
public function getCommonCustomerInfo()
|
|
|
{
|
|
|
- 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());
|
|
|
+ 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());
|
|
|
}
|
|
|
|
|
|
/**
|