'ID', 'mall_id' => '商城ID', 'user_id' => '会员id', 'openid' => 'openid', 'send_data' => '发送参数', 'result_data' => '返回参数', 'updated_at' => 'Updated At', 'created_at' => 'Created At', ]; } public static function add(array $params) { try { $model = new self(); $model->loadDefaultValues(); if (!$model->load($params, '') || !$model->save()) throw new \Exception($model->getErrorMessage()); return $model; } catch (\Exception $e) { self::$static_error = $e->getMessage(); return false; } } }