This commit is contained in:
2025-10-29 15:32:26 +08:00
parent d90614805b
commit b7462657cd
78921 changed files with 2753938 additions and 71 deletions

36
src/app/event/Qrcode.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
/**
*/
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;
}
}
}