wupengfei 2 سال پیش
والد
کامیت
edf0b76026
4فایلهای تغییر یافته به همراه169 افزوده شده و 12 حذف شده
  1. 13 10
      .idea/workspace.xml
  2. 38 1
      application/api/controller/Expedite.php
  3. 1 1
      application/api/controller/General.php
  4. 117 0
      config/platform_url.php

+ 13 - 10
.idea/workspace.xml

@@ -2,7 +2,10 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
-      <change beforePath="$PROJECT_DIR$/application/nutrition/view/article_item/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/article_item/form.html" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/config/platform_url.php" 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/Expedite.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Expedite.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/General.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/General.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -120,7 +123,7 @@
   <component name="PropertiesComponent">
     <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
     <property name="WebServerToolWindowFactoryState" value="false" />
-    <property name="last_opened_file_path" value="$PROJECT_DIR$/application/common/service" />
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/config" />
     <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" />
@@ -131,18 +134,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\a" />
-      <recent name="D:\zs\gaoyixia\public" />
-      <recent name="D:\zs\gaoyixia\public\wx_cert" />
-      <recent name="D:\zs\gaoyixia\application\api\controller" />
-    </key>
     <key name="CopyFile.RECENT_KEYS">
+      <recent name="D:\zs\gaoyixia\config" />
       <recent name="D:\zs\gaoyixia\application\common\service" />
       <recent name="D:\zs\gaoyixia\application\common\model" />
       <recent name="D:\zs\gaoyixia\application\sd" />
       <recent name="D:\zs\gaoyixia\public" />
-      <recent name="D:\zs\gaoyixia\public\dist" />
+    </key>
+    <key name="MoveFile.RECENT_KEYS">
+      <recent name="D:\zs\gaoyixia\public\a" />
+      <recent name="D:\zs\gaoyixia\public" />
+      <recent name="D:\zs\gaoyixia\public\wx_cert" />
+      <recent name="D:\zs\gaoyixia\application\api\controller" />
     </key>
   </component>
   <component name="SvnConfiguration">
@@ -226,7 +229,7 @@
       <workItem from="1675385718666" duration="30214000" />
       <workItem from="1675731017731" duration="19419000" />
       <workItem from="1675817304130" duration="20307000" />
-      <workItem from="1675904734949" duration="471000" />
+      <workItem from="1675904734949" duration="13150000" />
     </task>
     <servers />
   </component>

+ 38 - 1
application/api/controller/Expedite.php

@@ -31,7 +31,7 @@ use think\cache\driver\Redis;
 use think\Db;
 use app\common\model\VideoComment;
 /**
- * @title 不需要验证token接口
+ * @title 其他接口(不需要登录状态)【多模块共用】
  * @controller Expedite
  * @package app\api\controller
  */
@@ -896,4 +896,41 @@ class Expedite extends Base
 
 
 
+    /**
+     * @title 以下接口为二期需求
+     * @desc  以下接口为二期需求
+     * @author  qc
+     * @url /api/Expedite/secondPhase
+     * @method
+     * @return name:1 type:string default:-- desc:以下接口为二期需求
+     */
+    public function secondPhase(){}
+
+
+    /**
+     * @title 获取平台页面链接
+     * @desc  参数自定义!参数自定义!!参数自定义!!!
+     * @author  qc
+     * @url /api/Expedite/secondPhase
+     * @method GET
+     * @param name:module type:string default:-- desc:模块【video=>视频,article=>图文,datum=>资料,activity=>活动,demand=>需求,forum=>问答,press=>新闻,supplier=>供应商商品,recruit=>招聘,mall=>商城商品】
+     * @param name:tag type:string default:-- desc:页面标识【detail=>详情,list=>列表】
+     * @param name:from type:string default:-- desc:请求接口来源1:h5,2:ios,3:android
+     */
+    public function getPlatformUrl()
+    {
+        $request_param = input('get.');
+        $module = input('module','activity');
+        $tag = input('tag','detail');
+        unset($request_param[$module]);
+        unset($request_param[$tag]);
+        $url = config('platform_url.'.$module)[$tag];
+        $this->success('ok',['url'=>$url,'param'=>http_build_query($request_param)]);
+    }
+
+
+
+
+
+
 }

+ 1 - 1
application/api/controller/General.php

@@ -5,7 +5,7 @@ use app\common\model\UserSearch;
 use app\common\model\UserTrack;
 
 /**
- * @title 其他接口【多模块共用】
+ * @title 其他接口(需要登录状态)【多模块共用】
  * @controller General
  * @group base
  */

+ 117 - 0
config/platform_url.php

@@ -0,0 +1,117 @@
+<?php
+return [
+    'activity'=>[
+        'detail'=>[
+            'desc'=>'活动详情',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+        'list'=>[
+            'desc'=>'活动列表',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+    ],
+    'article'=>[
+        'detail'=>[
+            'desc'=>'图文详情',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+        'list'=>[
+            'desc'=>'图文列表',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+
+    ],
+    'datum' =>[
+        'detail'=>[
+            'desc'=>'资料详情',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+        'list'=>[
+            'desc'=>'图文列表',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+    ],
+    'demand'=>[
+        'detail'=>[
+            'desc'=>'需求详情',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+        'list'=>[
+            'desc'=>'需求列表',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+    ],
+    'forum' =>[
+        'detail'=>[
+            'desc'=>'问答详情',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+        'list'=>[
+            'desc'=>'问答列表',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+    ],
+    'mall'=>[
+        'detail'=>[
+            'desc'=>'商城商品详情',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+        'list'=>[
+            'desc'=>'商城商品列表',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+    ],
+    'press'=>[
+        'detail'=>[
+            'desc'=>'新闻详情',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+        'list'=>[
+            'desc'=>'新闻列表',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+    ],
+    'video'=>[
+        'detail'=>[
+            'desc'=>'视频详情',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+        'list'=>[
+            'desc'=>'视频列表',
+            'H5'=> '',
+            'Android'=> '',
+            'Ios'=> '',
+        ],
+    ],
+
+];