WIN-2308041133\Administrator 5 달 전
부모
커밋
f883d3357b
1개의 변경된 파일과 8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      app/model/api/Sys.php

+ 8 - 1
app/model/api/Sys.php

@@ -106,8 +106,15 @@ class Sys extends Model
         if($code=="invite"){
             return $inviteconfig;
         }
+        //积分配置
+        $scoreconfig=[
+            "points_transformation"=>"",
+        ];
+        if(!empty($sys->points_transformation)){
+            $scoreconfig['points_transformation'] = $sys->points_transformation;
+        }
         if($code=="score"){
-            return $sys->points_transformation;
+            return $scoreconfig;
         }
         $data = $sys->toArray();
         $data["wxconfig"] = $wxconfig;