You've already forked qlg.tsgz.moe
吉日
This commit is contained in:
@ -80,7 +80,18 @@ class SysConfigs extends Base{
|
||||
foreach ($data as $k=>$v) {
|
||||
$m->updateInfo(['configId'=>$k],['fieldValue'=>$v]);
|
||||
}
|
||||
Db::commit();
|
||||
if (isset($data['jiri_jiyan'])) {
|
||||
$this->update(['fieldValue'=>$data['jiri_jiyan']],['fieldCode'=>'jiri_jiyan']);
|
||||
}
|
||||
if (isset($data['jiri_get_percent'])) {
|
||||
$this->update(['fieldValue'=>floatval($data['jiri_get_percent'])],['fieldCode'=>'jiri_get_percent']);
|
||||
}
|
||||
if (isset($data['jiri'])) {
|
||||
$time = strtotime($data['jiri']);
|
||||
if (empty($time)) {return WSTReturn("操作失败;吉日日期格式不对", 1);}
|
||||
$this->update(['fieldValue'=>date('Y/m/d', $time)],['fieldCode'=>'jiri']);
|
||||
}
|
||||
Db::commit();
|
||||
return WSTReturn("操作成功", 1);
|
||||
}catch (\Exception $e) {
|
||||
Db::rollback();errLog($e);
|
||||
|
Reference in New Issue
Block a user