Commit 84183a9b authored by chenchuanwen's avatar chenchuanwen

growcard

parent 4da7f4a0
......@@ -130,17 +130,32 @@ class IndexController extends \Our\Controller_Abstract {
}
public function getSendHtmlAction(){
$req=$this->getRequest()->getQuery();
if(empty($req['params'] )){
if(empty($req['cacheKey'] )){
echo 'error';exit;
}
$params=base64_decode($req['params']);
$this->memberDb0Redis=\Redis\Db0\MemberRedisModel::getInstance();
$res= $this->memberDb0Redis->tableCacheGet($req['cacheKey']);
$params=unserialize($res);
$params=base64_decode($params);
$params=\Our\Common::paramToJson($params);
$shareService=\Business\User\ShareServiceModel::getInstance();
$params['id']=$params['storeId'];
$params['qrCode']=$shareService->getQrUrl($params);
$this->_view->assign("params", $params);
}
// public function getSendHtmlAction(){
// $req=$this->getRequest()->getQuery();
// if(empty($req['params'] )){
// echo 'error';exit;
// }
// $params=base64_decode($req['params']);
// $params=\Our\Common::paramToJson($params);
// $shareService=\Business\User\ShareServiceModel::getInstance();
// $params['id']=$params['storeId'];
// $params['qrCode']=$shareService->getQrUrl($params);
// $this->_view->assign("params", $params);
//
// }
public function getOpenHtmlAction(){
$req=$this->getRequest()->getQuery();
if(empty($req['params'] )){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment