|
@@ -235,6 +235,24 @@ class AgentTools{
|
|
|
return ["code"=>1,"msg"=>"绑定成功","data"=>null];
|
|
return ["code"=>1,"msg"=>"绑定成功","data"=>null];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取代理信息
|
|
|
|
|
+ * @param type $userCenterId
|
|
|
|
|
+ */
|
|
|
|
|
+ public function apiAgentInfoData($userCenterId){
|
|
|
|
|
+ $agentData = $this->dbNewAgent->get(["userCenterId"=>$userCenterId]);
|
|
|
|
|
+ if(empty($agentData)){
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ $where=[];
|
|
|
|
|
+ $where["agentId"]=$agentData["id"];
|
|
|
|
|
+ $where["deleteStatus"]=5;
|
|
|
|
|
+ $shopData = $this->dbShop->select($where,"id,name");
|
|
|
|
|
+ $agentData["shopData"] = $shopData ? $shopData : [];
|
|
|
|
|
+ return $agentData;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 获取代理商信息如果不存在则创建
|
|
* 获取代理商信息如果不存在则创建
|
|
|
* @param type $customerId
|
|
* @param type $customerId
|