| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * Niushop商城系统 - 团队十年电商经验汇集巨献!
- * =========================================================
- * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
- * ----------------------------------------------
- * 官方网址: https://www.niushop.com
- * =========================================================
- */
- namespace app\event;
- use app\model\system\Qrcode as QrcodeModel;
- /**
- * 生成二维码
- * @author Administrator
- *
- */
- class Qrcode
- {
- public function handle($param)
- {
- if (in_array($param[ "app_type" ], [ 'pc', 'h5', 'all', 'wechat', 'app' ])) {
- if ($param[ "app_type" ] == 'pc') {
- $param[ "app_type" ] = 'pc';
- } else {
- $param[ "app_type" ] = 'h5';
- }
- $qrcode = new QrcodeModel();
- $res = $qrcode->createQrcode($param);
- return $res;
- }
- }
- }
|