wupengfei vor 1 Jahr
Ursprung
Commit
ad4daec21d
3 geänderte Dateien mit 21 neuen und 16 gelöschten Zeilen
  1. 12 11
      .idea/workspace.xml
  2. 9 5
      application/api/controller/Qc.php
  3. BIN
      public/static/msyh.ttf

+ 12 - 11
.idea/workspace.xml

@@ -2,6 +2,7 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
+      <change afterPath="$PROJECT_DIR$/public/static/msyh.ttf" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/api/controller/Qc.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Qc.php" afterDir="false" />
     </list>
@@ -138,7 +139,7 @@
     <property name="WebServerToolWindowPanel.toolwindow.show.date" value="false" />
     <property name="WebServerToolWindowPanel.toolwindow.show.permissions" value="false" />
     <property name="WebServerToolWindowPanel.toolwindow.show.size" value="false" />
-    <property name="last_opened_file_path" value="$PROJECT_DIR$/application/operate/view/activity_qrcode" />
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/public/static" />
     <property name="node.js.detected.package.eslint" value="true" />
     <property name="node.js.detected.package.tslint" value="true" />
     <property name="node.js.path.for.package.eslint" value="project" />
@@ -149,18 +150,18 @@
     <property name="two.files.diff.last.used.folder" value="$PROJECT_DIR$" />
   </component>
   <component name="RecentsManager">
-    <key name="MoveFile.RECENT_KEYS">
-      <recent name="D:\zs\gaoyixia\public" />
-      <recent name="D:\zs\gaoyixia\public\wx_cert" />
-      <recent name="D:\zs\gaoyixia\public\a" />
-      <recent name="D:\zs\gaoyixia\application\api\controller" />
-    </key>
     <key name="CopyFile.RECENT_KEYS">
+      <recent name="D:\zs\gaoyixia\public\static" />
       <recent name="D:\zs\gaoyixia\application\operate\view\activity_qrcode" />
       <recent name="D:\zs\gaoyixia\application\operate\view\activity_apply" />
       <recent name="D:\zs\gaoyixia\vendor\alipaysdk\easysdk" />
       <recent name="D:\zs\gaoyixia\application\operate\view" />
-      <recent name="D:\zs\gaoyixia\application\operate\controller" />
+    </key>
+    <key name="MoveFile.RECENT_KEYS">
+      <recent name="D:\zs\gaoyixia\public" />
+      <recent name="D:\zs\gaoyixia\public\wx_cert" />
+      <recent name="D:\zs\gaoyixia\public\a" />
+      <recent name="D:\zs\gaoyixia\application\api\controller" />
     </key>
   </component>
   <component name="SvnConfiguration">
@@ -379,7 +380,7 @@
       <workItem from="1689900489647" duration="18483000" />
       <workItem from="1690159826319" duration="22343000" />
       <workItem from="1690246325106" duration="23791000" />
-      <workItem from="1690332708631" duration="1824000" />
+      <workItem from="1690332708631" duration="2322000" />
     </task>
     <servers />
   </component>
@@ -545,10 +546,10 @@
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
     <state x="1291" y="317" key="run.anything.popup/0.0.2560.1400@0.0.2560.1400" timestamp="1686300134364" />
-    <state x="1581" y="565" width="672" height="678" key="search.everywhere.popup" timestamp="1690263804726">
+    <state x="1581" y="565" width="672" height="678" key="search.everywhere.popup" timestamp="1690334964384">
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
-    <state x="1581" y="565" width="672" height="678" key="search.everywhere.popup/0.0.2560.1400@0.0.2560.1400" timestamp="1690263804726" />
+    <state x="1581" y="565" width="672" height="678" key="search.everywhere.popup/0.0.2560.1400@0.0.2560.1400" timestamp="1690334964384" />
     <state x="1115" y="647" key="vcs.readOnlyHandler.ReadOnlyStatusDialog" timestamp="1683770722863">
       <screen x="0" y="0" width="2560" height="1400" />
     </state>

+ 9 - 5
application/api/controller/Qc.php

@@ -24,12 +24,16 @@ class Qc extends Base {
     //
     public function ticketPic()
     {
-        $path = $this->request->root(true);
-        var_dump($path);
-        die();
-        $url = "https://ceshi.gyxqcdz.com/dist/#/index";
+        $path = $this->request->root(true).'/static/page_pic/';
+        //var_dump($path);die();
+        $url = $this->request->root(true)."/dist/#/index";
+        $ttf_url = $this->request->root(true).'/static/msyh.ttf';
         $myImage = imageCreate(200,500);
-
+        $red = imagecolorallocate($myImage,255,0,0);
+        imagettftext($myImage,12,5,20,$red,$ttf_url,$url);
+        imagepng($myImage,$path.'qc.png');
+        imagedestroy($myImage);
+        $this->success('ok',$path.'qc.png');
     }
 
 

BIN
public/static/msyh.ttf