|
|
|
@ -1224,4 +1224,29 @@ class MallAuthService extends AbstractService {
|
|
|
|
|
$row = $this->mallAuthDao->getListByMallId($mallId);
|
|
|
|
|
return $row ? true : false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* public function getAuthMallMap($venderId, $shopName, $preVenderIdList) {
|
|
|
|
|
list($multiShopOptions, $groupIdAndGroupNameMap) = $this->getVenderAuthGroupMultiShopOptions($venderId, $shopName, $preVenderIdList);
|
|
|
|
|
$venderIds = array_keys($multiShopOptions);
|
|
|
|
|
$selectedAuthVenderIds = ((count($multiShopOptions) > 1) && $venderAuthConfig['selectedAuthVenderIds']) ? explode(',', $venderAuthConfig['selectedAuthVenderIds']) : array_keys($multiShopOptions);
|
|
|
|
|
$selectedAuthVenderIds = array_map(function ($selectedAuthVenderId) {
|
|
|
|
|
return (string)$selectedAuthVenderId;
|
|
|
|
|
}, $selectedAuthVenderIds);
|
|
|
|
|
$selectedAuthGroupIds = ((count($groupIdAndGroupNameMap) > 1) && $venderAuthConfig['selectedAuthGroupIds']) ? explode(',', $venderAuthConfig['selectedAuthGroupIds']) : array_keys($groupIdAndGroupNameMap);
|
|
|
|
|
$selectedAuthGroupIds = array_map(function ($selectedAuthGroupId) {
|
|
|
|
|
return (string)$selectedAuthGroupId;
|
|
|
|
|
}, $selectedAuthGroupIds);
|
|
|
|
|
|
|
|
|
|
$authVenderInfoList = $this->getVenderAppByVenderIds($venderIds, Zc::C('appName'));
|
|
|
|
|
$venderIdAndShopNameMap = [];
|
|
|
|
|
$expiredVenderIdAndShopNameMap = [];
|
|
|
|
|
foreach ($multiShopOptions as $venderId => $shopName) {
|
|
|
|
|
if ($authVenderInfoList[$venderId]['accessTokenIsInvalid'] || strtotime($authVenderInfoList[$venderId]['gmtExpire']) < time()) {
|
|
|
|
|
$expiredVenderIdAndShopNameMap[$venderId] = $shopName;
|
|
|
|
|
} else {
|
|
|
|
|
$venderIdAndShopNameMap[$venderId] = $shopName;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return compact('venderIdAndShopNameMap', 'expiredVenderIdAndShopNameMap', 'selectedAuthVenderIds', 'selectedAuthGroupIds', 'groupIdAndGroupNameMap', 'selectedAuthType');
|
|
|
|
|
} */
|
|
|
|
|
}
|