'ID', 'seed_order_id' => 'seed_order.id', 'seed_num' => '退款种子金数量', 'seed_cost' => '退款种子金总价值,单位:元', 'percent' => '退款比例,单位:百分比', 'status' => '状态【-1删除 0禁用,1正常】', 'created_at' => '创建时间', 'updated_at' => '更新数据时间', ]; } /** * 保存数据 * @Author: lun * @DateTime: 2022/8/30 0030 10:34 * @Copyright: copyright (c) 2021 广东七件事集团 * @param $params * @return bool */ public static function setData($params) { try { $model = new self(); $model->loadDefaultValues(); if (!$model->load($params, '') || !$model->save()) throw new Exception($model->getErrorMessage()); return true; } catch (\Exception $e) { self::setStaticError('种子金退款记录:'.$e->getMessage()); return false; } } }