waymen 5 luni în urmă
părinte
comite
755a33137b
2 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 1 1
      app/Http/Controllers/API/GlendaleController.php
  2. 6 0
      app/helpers.php

+ 1 - 1
app/Http/Controllers/API/GlendaleController.php

@@ -16,7 +16,7 @@ class GlendaleController extends Controller
 
         Log::info('glendale callback params:', $arr);
 
-        $bimService->setGlendaleModelCovertStatus($arr['LightweightName'] ?? '', sourceStatus: (int)($arr['status'] ?? 0));
+        $bimService->setGlendaleModelCovertStatus($arr['LightweightName'] ?? '', (int) ($arr['status'] ?? 0));
 
         return $this->success($arr);
     }

+ 6 - 0
app/helpers.php

@@ -80,6 +80,12 @@ if (!function_exists('make_array_list')) {
 }
 
 if (!function_exists('json_decode_arr')) {
+
+    /**
+     * 让json decode统一返回array
+     * @param mixed $string
+     * @return array
+     */
     function json_decode_arr($string): array
     {
         $arr = json_decode($string, true);