소스 검색

类型强转

duqinya 5 년 전
부모
커밋
d0abe6c968
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Repositories/CmsContentTemplateSetRepository.php

+ 1 - 1
app/Repositories/CmsContentTemplateSetRepository.php

@@ -340,7 +340,7 @@ class CmsContentTemplateSetRepository
         $pro_array = $product->toArray();
         $res_id = implode(",", array_column($pro_array, 'product_id'));
 
-        $field_order = $request['field_order'] ?? '';
+        $field_order = intval($request['field_order']) ?? 0;
         $product_key = config('constants.CMS_PRODUCTS');
         if (isset($field_order)) {
             $product_keys = sprintf($product_key, md5($res_id . $field_order));