Browse Source

修改请求方式

duqinya 5 years ago
parent
commit
4c68bc31cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Repositories/BannerRepository.php

+ 1 - 1
app/Repositories/BannerRepository.php

@@ -168,7 +168,7 @@ class BannerRepository
                 'json' => ['banner_id' => $request['banner_id']], 'query' => [], 'http_errors' => false, 'headers' => ['Authorization' => "Bearer " . JWTAuth::getToken()]
             ];
 
-            return http($url, $array, 'put');
+            return http($url, $array, 'post');
         } catch (\Exception $e) {
             return [];
         }