mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-13 11:52:51 +00:00
34 lines
799 B
PHP
34 lines
799 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: xurongyao <763569752@qq.com>
|
|
* Date: 2019/4/8 7:30 PM
|
|
*/
|
|
use app\admin\model\wechat\WechatQrcode as QrcodeModel;//待完善
|
|
|
|
class Qrcode
|
|
{
|
|
/**
|
|
* 获取临时二维码 单个
|
|
* */
|
|
public static function getTemporaryQrcode($type,$id){
|
|
return QrcodeModel::getTemporaryQrcode($type,$id)->toArray();
|
|
}
|
|
/**
|
|
* 获取永久二维码 单个
|
|
* */
|
|
public static function getForeverQrcode($type,$id){
|
|
return QrcodeModel::getForeverQrcode($type,$id)->toArray();
|
|
}
|
|
|
|
public static function getQrcode($id,$type = 'id')
|
|
{
|
|
return QrcodeModel::getQrcode($id,$type);
|
|
}
|
|
|
|
public static function scanQrcode($id,$type = 'id')
|
|
{
|
|
return QrcodeModel::scanQrcode($id,$type);
|
|
}
|
|
} |