|
|
@@ -61,6 +61,17 @@ class Sys extends Model
|
|
|
];
|
|
|
$this->where("id",1)->update(["inviteconfig"=> serialize($save)]);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 积分配置信息
|
|
|
+ * @param type $data
|
|
|
+ */
|
|
|
+ public function saveScoreConfig($data){
|
|
|
+ $save=[
|
|
|
+ "points_transformation" => empty($data["points_transformation"]) ?"":$data["points_transformation"],
|
|
|
+ "points_share" => empty($data["points_transformation"])?"":$data["points_transformation"],
|
|
|
+ ];
|
|
|
+ $this->where("id",1)->update(["scoreconfig"=> serialize($save)]);
|
|
|
+ }
|
|
|
/**
|
|
|
* 获取配置详情
|
|
|
* @return type
|