kuaifan 5 years ago
parent
commit
890a9edf28
2 changed files with 1 additions and 12 deletions
  1. 1 1
      app/Module/Base.php
  2. 0 11
      resources/assets/js/common.js

+ 1 - 1
app/Module/Base.php

@@ -1261,7 +1261,7 @@ class Base
      */
     public static function ajaxError($msg, $data = [], $ret = 0)
     {
-        if (Request::input('__Access-Control-Allow-Origin') || Request::header('Content-Type') === 'application/json' || Request::header('platform')) {
+        if (Request::input('__Access-Control-Allow-Origin') || Request::header('Content-Type') === 'application/json') {
             return Base::retError($msg, $data, $ret);
         }else{
             return abort(404);

+ 0 - 11
resources/assets/js/common.js

@@ -1361,17 +1361,6 @@
             params.header['Content-Type'] = 'application/json';
             params.header['language'] = window.localStorage['__language:type__'] || 'zh';
             params.header['token'] = $A.token();
-            //渠道
-            let channel = $A.hashParameter('channel');
-            if (!$A.ishave(channel)) {
-                channel = $A.storage('platform-channel');
-            }else{
-                $A.storage('platform-channel', channel);
-            }
-            if (!$A.ishave(channel)) {
-                channel = "none";
-            }
-            params.header['platform-channel'] = channel;
             //
             params.data['__Access-Control-Allow-Origin'] = true;
             params.beforeSend();