orderPrintService = Zc::singleton('OrderPrintService'); $this->mallService = Zc::singleton('MallService'); } /* * (non-PHPdoc) @see ZcWidget::render() */ public function render($renderData = '') { $mallId = $_SESSION[SessionConst::mallId]; $renderData['opSetting'] = $this->orderPrintService->getUserOpSetting($mallId); if ($_SESSION[SessionConst::pcwsUid]) { $pcwsUid = $_SESSION[SessionConst::pcwsUid]; } else { $appName = Zc::C('appName'); $prefixStr = $_SESSION[SessionConst::mallId] . "_{$appName}_"; $pcwsUid = uniqid($prefixStr); $_SESSION[SessionConst::pcwsUid] = $pcwsUid; } $serverTime = time(); $pcwsData = json_encode(array( 'address' => Zc::C('pcwsConnectAddress'), 'uid' => $pcwsUid, 'time' => $serverTime, 'token' => md5(sprintf('%s_%s_%s', $pcwsUid, $serverTime, Zc::C('pcwsConnectSalt'))) )); // $renderData['pcwsData'] = $pcwsData; $renderData['isMallRoleFactory'] = $this->mallService->checkIsMallRoleFactory($mallId); $rsyncOrderDateList = array( '7' => '7天', ); $rsyncFdsOrderDaysList = array( '7' => '7天', ); $needFullRsyncOpOrder = $this->mallService->getMallBizWhiteListByBizCode($mallId, MallConst::bizCodeFullRsyncOpOrder); if ($needFullRsyncOpOrder && CommonTool::isTrustyIp()) { $rsyncOrderDateList = array( '3' => '3天', '7' => '7天', '15' => '15天', '20' => '20天', '30' => '30天', '60' => '2个月', '90' => '3个月', ); $rsyncFdsOrderDaysList = array( '3' => '3天', '7' => '7天', '15' => '15天', '20' => '20天', '30' => '30天', ); } $multiShopOptions = $this->mallService->getMultiShopOptions($mallId, $_SESSION[SessionConst::mallName]); $renderData['rsyncOrderDateList'] = $rsyncOrderDateList; $renderData['rsyncFdsOrderDaysList'] = $rsyncFdsOrderDaysList; $renderData['mallId'] = $mallId; $renderData['multiShopOptions'] = $multiShopOptions; return $this->renderFile('common/footer', $renderData); } }