...
|
...
|
@@ -118,6 +118,8 @@ class Cm0order0zan extends Backend |
|
|
}
|
|
|
if ($this->request->isPost()) {
|
|
|
$params = $this->request->post("row/a");
|
|
|
|
|
|
|
|
|
if ($params) {
|
|
|
$params = $this->preExcludeFields($params);
|
|
|
$result = false;
|
...
|
...
|
@@ -131,8 +133,16 @@ class Cm0order0zan extends Backend |
|
|
}
|
|
|
|
|
|
$params = $this->tuiOrder($row, $params,$ids);
|
|
|
|
|
|
//添加有效期
|
|
|
$type = $row->where('id', $ids)->value('type');
|
|
|
if (($params['wc'] == '1' || $params['wc'] == '3')&& $type == '2'){
|
|
|
$expire = config('site.expire');
|
|
|
$day = 86400*$expire;
|
|
|
$have_expire = time()+$day;
|
|
|
$params['expiretime'] = $have_expire;
|
|
|
}
|
|
|
$result = $row->allowField(true)->save($params);
|
|
|
|
|
|
Db::commit();
|
|
|
} catch (ValidateException $e) {
|
|
|
Db::rollback();
|
...
|
...
|
|