LiuJ 4 veckor sedan
förälder
incheckning
9944c83959
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/JsonRpc/WebsiteService.php

+ 1 - 1
app/JsonRpc/WebsiteService.php

@@ -1201,7 +1201,7 @@ class WebsiteService implements WebsiteServiceInterface
         $letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
         // 打乱字符串顺序并截取前四位
         // $randss = substr(str_shuffle($letters), 0, 4);
-        if (!isset($data['aLIas_pinyin']) || $data['aLIas_pinyin'] == '') {
+        if ($data['alias_pinyin']  == '') {
             $data['aLIas_pinyin'] = $aLIas_pinyin;
         }
         $result = WebsiteCategory::where($where)->update($data);