123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace Cas\Controller;
- use KIF\Core\Request;
- use Cas\Module\LotteryEventsTypeInvitation;
- use Cas\Dao\LotteryEvents;
- use Cas\Dao\LotteryEventsForms;
- /**
- *
- * 二维码数据
- *
- */
- class QrcodeData extends Controller {
-
-
- public function doInvitation() {
- $uid = Request::g('uid');
- $events_id = Request::g('events_id');
- $token = Request::g('token');
- $formsId = Request::g('formsId');
-
- $objLotteryEventsTypeInvitation = new LotteryEventsTypeInvitation($uid, $events_id);
- if ($token != $objLotteryEventsTypeInvitation->getQrcodeUrlToken()) {
- self::fail_exit('token有效性认证失败');
- }
-
- $objLotteryEventsForms = new LotteryEventsForms();
- $formData = $objLotteryEventsForms->get($formsId);
-
- $objLotteryEvents = new LotteryEvents();
- $event = $objLotteryEvents->get($events_id);
- # 表单类型数据
- $formType = array();
- foreach ($event['forms'] as $tmpForms) {
- $formType[] = $tmpForms['name'];
- }
-
- $this->tpl = 'qrcode_invitation';
- $this->setOutput('title', '用户信息');
- $this->setOutput('formData', $formData);
- $this->setOutput('formType', $formType);
- $this->setOutput('notShowWeixinShare', true);
- }
- public function display() {
- return $this->render();
- }
- }
|