linwu 7 months ago
parent
commit
4dda524ba8
4 changed files with 7 additions and 11 deletions
  1. 2 2
      app/common/service/RensheService.php
  2. 0 8
      public/.htaccess
  3. 0 1
      public/.user.ini
  4. 5 0
      public/nginx.htaccess

+ 2 - 2
app/common/service/RensheService.php

@@ -126,9 +126,9 @@ class RensheService
     public function jobInfoByComId($id)
     {
         //线上环境才同步
-        if (env('APP_DEBUG')) {
+        /*if (env('APP_DEBUG')) {
             return ['code' => 200];
-        }
+        }*/
         $this->_jobInfoData($id);
         $res = $this->jobInfo();
 

+ 0 - 8
public/.htaccess

@@ -1,8 +0,0 @@
-<IfModule mod_rewrite.c>
-  Options +FollowSymlinks -Multiviews
-  RewriteEngine On
-
-  RewriteCond %{REQUEST_FILENAME} !-d
-  RewriteCond %{REQUEST_FILENAME} !-f
-  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
-</IfModule>

+ 0 - 1
public/.user.ini

@@ -1 +0,0 @@
-open_basedir=/www/wwwroot/linggongjinjianghccom/:/tmp/

+ 5 - 0
public/nginx.htaccess

@@ -0,0 +1,5 @@
+location / {
+   if (!-f $request_filename) {
+   	rewrite  ^(.*)$  /index.php?s=/$1  last;
+    }
+}