wupengfei 1 سال پیش
والد
کامیت
9dbe2b76c2
3فایلهای تغییر یافته به همراه10 افزوده شده و 93 حذف شده
  1. 9 8
      .idea/workspace.xml
  2. 0 84
      application/api/controller/Qc.php
  3. 1 1
      config/text.php

+ 9 - 8
.idea/workspace.xml

@@ -3,6 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <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" />
       <change beforePath="$PROJECT_DIR$/config/text.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/text.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -168,13 +169,6 @@
     <property name="two.files.diff.last.used.folder" value="$PROJECT_DIR$" />
   </component>
   <component name="RecentsManager">
-    <key name="CopyFile.RECENT_KEYS">
-      <recent name="D:\zs\gaoyixia\application\order\view" />
-      <recent name="D:\zs\gaoyixia\application\order\controller" />
-      <recent name="D:\zs\gaoyixia\application\operate\view\supplier_goods" />
-      <recent name="D:\zs\gaoyixia\application\common\model" />
-      <recent name="D:\zs\gaoyixia\application\mall\view\goods_cate" />
-    </key>
     <key name="MoveFile.RECENT_KEYS">
       <recent name="D:\zs\gaoyixia\public" />
       <recent name="D:\zs\gaoyixia\public\static" />
@@ -182,6 +176,13 @@
       <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\application\order\view" />
+      <recent name="D:\zs\gaoyixia\application\order\controller" />
+      <recent name="D:\zs\gaoyixia\application\operate\view\supplier_goods" />
+      <recent name="D:\zs\gaoyixia\application\common\model" />
+      <recent name="D:\zs\gaoyixia\application\mall\view\goods_cate" />
+    </key>
   </component>
   <component name="SvnConfiguration">
     <configuration />
@@ -443,7 +444,7 @@
       <workItem from="1694739473903" duration="20371000" />
       <workItem from="1694997975324" duration="5574000" />
       <workItem from="1695085328694" duration="21844000" />
-      <workItem from="1695603648860" duration="21543000" />
+      <workItem from="1695603648860" duration="22438000" />
     </task>
     <servers />
   </component>

+ 0 - 84
application/api/controller/Qc.php

@@ -24,14 +24,6 @@ use function AlibabaCloud\Client\value;
 
 class Qc extends Base {
 
-    public function cookie()
-    {
-        var_dump(56666);
-        $a = setcookie('aa',666,time() +666666);
-        var_dump($a);
-    }
-
-
     // 热搜设置
     public function topSearchSet()
     {
@@ -102,60 +94,6 @@ class Qc extends Base {
         });
 
 
-
-
-
-    }
-
-
-    public function getUserByToken()
-    {
-        $key = md5(config('app.jwt'));
-        $authorization = input('token');
-        $check_authorization = JWT::decode($authorization, $key, array('HS256'));
-        var_dump($check_authorization);
-    }
-
-
-    public function sj()
-    {
-        $list= User::where('status',1)->orderRaw('rand()')->limit(10)->select()->toArray();
-        var_dump($list);
-    }
-
-
-    public function recommend()
-    {
-        $module = input('module');
-        $user_id = input('user_id');
-        $page = input('page',1);
-        $page_num = input('page_num',20);
-        $res = UserSynth::getRecommendList($user_id,$module,$page,$page_num);
-        $this->success('ok',$res);
-    }
-
-
-
-    //
-    public function ticketPic()
-    {
-        $path = env('root_path').'static/page_pic';
-        //var_dump($path);die();
-        $url = $this->request->root(true)."/dist/#/index";
-        $html = file_get_contents($url);
-        $ttf_url = '/static/msyh.ttf';
-        $image = imagecreatetruecolor(1000,2000);
-        $myImage = imageCreate(200,500);
-        $red = imagecolorallocate($myImage,255,0,0);
-        $textColor="#5e1709";
-        $R = hexdec(substr($textColor, 1, 2));
-        $G = hexdec(substr($textColor, 3, 2));
-        $B = hexdec(substr($textColor, 5));
-        imagettftext($myImage,12,5,20,10,imagecolorallocatealpha($myImage, $R, $G, $B,50),$ttf_url,'aaa');
-        header("Content-type:image/png");
-        imagepng($myImage,$path.'qc.png');
-        imagedestroy($myImage);
-        $this->success('ok',$path.'qc.png');
     }
 
 
@@ -183,15 +121,6 @@ class Qc extends Base {
         $this->success('ok',$res);
     }
 
-    function index ()
-    {
-        $st = '12ABcc';
-        $st1 = '12abcc';
-        var_dump(666666);
-    }
-
-
-
     public function sendEmail()
     {
        $this->success(send_email('913856018@qq.com','AAAAAAAAAAAAAAAAA'));
@@ -205,19 +134,6 @@ class Qc extends Base {
         //密码必须包含大小写字母/数字/符号任意两者组合
         $regStr = "/^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[\(\)])+$)([^(0-9a-zA-Z)]|[\(\)]|[a-z]|[A-Z]|[0-9]){6,16}$/";
         var_dump(preg_match($regStr, $password));
-
-
-    }
-
-
-    public function changeReadNum()
-    {
-        $list= DatumIntro::where('is_deleted',0)->select()->toArray();
-        foreach ($list  as $v)
-        {
-            $read_num  = DatumUrl::where('datum_id',$v['id'])->sum('read_num');
-            if($read_num > 0)  DatumIntro::where('id',$v['id'])->update(['read_num'=>$read_num]);
-        }
     }
 
 

+ 1 - 1
config/text.php

@@ -4,7 +4,7 @@
 return [
     // 平台名
     'platform_name'       => '搞一下',//
-   // 'es_index'       => 'gaoyixia_official',// es 实例名称   正式服  上线需求切换成正式服的
+   // 'es_index'       => 'gaoyixia_official',// es 正式服  上线需求切换成正式服的
     'es_index'       => 'gaoyixia_test',// es 实例名称 测试服
 
 ];