|
@@ -24,6 +24,7 @@ use JinDouYun\Model\Customer\MMemberBalanceDetail;
|
|
|
use JinDouYun\Model\Customer\MReflectDetail;
|
|
use JinDouYun\Model\Customer\MReflectDetail;
|
|
|
use JinDouYun\Model\Finance\MCustomerBalanceDetail;
|
|
use JinDouYun\Model\Finance\MCustomerBalanceDetail;
|
|
|
use JinDouYun\Dao\SysAreaChina\DSysAreaChina;
|
|
use JinDouYun\Dao\SysAreaChina\DSysAreaChina;
|
|
|
|
|
+use Util\Common\AgentTools;
|
|
|
|
|
|
|
|
class ApiCustomer extends BaseController
|
|
class ApiCustomer extends BaseController
|
|
|
{
|
|
{
|
|
@@ -35,6 +36,8 @@ class ApiCustomer extends BaseController
|
|
|
private $objMMemberBalanceDetail;
|
|
private $objMMemberBalanceDetail;
|
|
|
private $objMReflectDetail;
|
|
private $objMReflectDetail;
|
|
|
private $objMCustomerBalanceDetail;
|
|
private $objMCustomerBalanceDetail;
|
|
|
|
|
+ private $agentTool;
|
|
|
|
|
+ private $customerData;
|
|
|
|
|
|
|
|
public function __construct($isCheckAcl = false, $isMustLogin = true, $checkToken = true)
|
|
public function __construct($isCheckAcl = false, $isMustLogin = true, $checkToken = true)
|
|
|
{
|
|
{
|
|
@@ -47,6 +50,10 @@ class ApiCustomer extends BaseController
|
|
|
$this->objMMemberBalanceDetail = new MMemberBalanceDetail($this->onlineEnterpriseId, $this->onlineUserId);
|
|
$this->objMMemberBalanceDetail = new MMemberBalanceDetail($this->onlineEnterpriseId, $this->onlineUserId);
|
|
|
$this->objMReflectDetail = new MReflectDetail($this->onlineEnterpriseId, $this->onlineUserId);
|
|
$this->objMReflectDetail = new MReflectDetail($this->onlineEnterpriseId, $this->onlineUserId);
|
|
|
$this->objMCustomerBalanceDetail = new MCustomerBalanceDetail($this->onlineEnterpriseId, $this->onlineUserId);
|
|
$this->objMCustomerBalanceDetail = new MCustomerBalanceDetail($this->onlineEnterpriseId, $this->onlineUserId);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ $this->agentTool = new AgentTools($this->onlineEnterpriseId);
|
|
|
|
|
+// $this->customerData = $this->agentTool->getCustomerDataByUserCenterId($this->onlineUserId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -114,6 +121,9 @@ class ApiCustomer extends BaseController
|
|
|
$customerData = $this->objMCustomer->getCustomerInfoByUserCenterId($this->onlineUserId, true);
|
|
$customerData = $this->objMCustomer->getCustomerInfoByUserCenterId($this->onlineUserId, true);
|
|
|
if ($customerData->isSuccess()) {
|
|
if ($customerData->isSuccess()) {
|
|
|
$customerInfo = $customerData->getData();
|
|
$customerInfo = $customerData->getData();
|
|
|
|
|
+
|
|
|
|
|
+ $agentData = $this->agentTool->getAndSetAgentData($customerInfo["id"]);
|
|
|
|
|
+ $customerInfo["agentId"] = empty($agentData) ? 0 : $agentData["id"];
|
|
|
|
|
|
|
|
$this->sendOutput($customerInfo);
|
|
$this->sendOutput($customerInfo);
|
|
|
} else {
|
|
} else {
|