Qrcode.php 799 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xurongyao <763569752@qq.com>
  5. * Date: 2019/4/8 7:30 PM
  6. */
  7. use app\admin\model\wechat\WechatQrcode as QrcodeModel;//待完善
  8. class Qrcode
  9. {
  10. /**
  11. * 获取临时二维码 单个
  12. * */
  13. public static function getTemporaryQrcode($type,$id){
  14. return QrcodeModel::getTemporaryQrcode($type,$id)->toArray();
  15. }
  16. /**
  17. * 获取永久二维码 单个
  18. * */
  19. public static function getForeverQrcode($type,$id){
  20. return QrcodeModel::getForeverQrcode($type,$id)->toArray();
  21. }
  22. public static function getQrcode($id,$type = 'id')
  23. {
  24. return QrcodeModel::getQrcode($id,$type);
  25. }
  26. public static function scanQrcode($id,$type = 'id')
  27. {
  28. return QrcodeModel::scanQrcode($id,$type);
  29. }
  30. }