WIN-2308041133\Administrator 1 week ago
parent
commit
dbcd1a5b32
2 changed files with 3 additions and 2 deletions
  1. 3 0
      app/Request.php
  2. 0 2
      app/api/controller/v1/admin/StoreOrderController.php

+ 3 - 0
app/Request.php

@@ -116,7 +116,9 @@ class Request extends \think\Request
      */
      */
     public function replaceWord($farr, $str)
     public function replaceWord($farr, $str)
     {
     {
+        file_put_contents(__DIR__ . '/../debug_replaceWord.log', "Input: " . var_export($str, true) . "\n", FILE_APPEND);
         $url = parse_url($str);
         $url = parse_url($str);
+        file_put_contents(__DIR__ . '/../debug_replaceWord.log', "parse_url: " . var_export($url, true) . "\n", FILE_APPEND);
         if ($url && isset($url['host']) && $url['host'] != '') {
         if ($url && isset($url['host']) && $url['host'] != '') {
             if (!isset($url['scheme'])) {
             if (!isset($url['scheme'])) {
                 $url['scheme'] = 'http';
                 $url['scheme'] = 'http';
@@ -126,6 +128,7 @@ class Request extends \think\Request
         } else {
         } else {
             $str = preg_replace($farr, '', $str);
             $str = preg_replace($farr, '', $str);
         }
         }
+        file_put_contents(__DIR__ . '/../debug_replaceWord.log', "Output: " . var_export($str, true) . "\n\n", FILE_APPEND);
         return $str;
         return $str;
     }
     }
 
 

+ 0 - 2
app/api/controller/v1/admin/StoreOrderController.php

@@ -742,11 +742,9 @@ class StoreOrderController
             ['detailed_address', ''],
             ['detailed_address', ''],
 //            ['latlng', ''],
 //            ['latlng', ''],
             ['day_time', []],
             ['day_time', []],
-//            ['scheme', ''],
         ]);
         ]);
         $id = $data['id'];
         $id = $data['id'];
         unset($data['id']);
         unset($data['id']);
-        unset($data['scheme']);
         /** @var SystemStoreServices $storeServices */
         /** @var SystemStoreServices $storeServices */
         $storeServices = app()->make(SystemStoreServices::class);
         $storeServices = app()->make(SystemStoreServices::class);
         $agent_id = User::where('uid',$uid)->value('agent_level');
         $agent_id = User::where('uid',$uid)->value('agent_level');