dever 3 年之前
父节点
当前提交
71c936c0a0
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      service/setting/lib/Code.php

+ 18 - 0
service/setting/lib/Code.php

@@ -0,0 +1,18 @@
+<?php
+
+namespace Setting\Lib;
+
+use Dever;
+
+class Code
+{
+    public function show_api()
+    {
+        $id = Dever::input('id');
+        $url = 'http://www.baidu.com/';
+        $url .= '?source_id=' . $id;
+        $code = Dever::load('qrcode/api')->qrcode($url);
+
+        return $code;
+    }
+}