'ID', 'mall_id' => 'Mall ID', 'user_id' => 'User ID', 'goods_id' => 'Goods ID', 'status' => 'Status', 'updated_at' => 'Updated At', 'created_at' => 'Created At', ]; } public static function setData(array $params) { try { $model = new self(); $model->loadDefaultValues(); if (!$model->load($params, '') || !$model->save()) throw new \Exception($model->getErrorMessage()); return true; } catch (\Exception $e) { self::$static_error = $e->getMessage(); return false; } } }