status = $this->statusAfterChanged; if(isset($this->time_field)){ $time_fields = $this->time_field; $this->$time_fields = time(); } return $this->save(); } /** * 执行订单操作 * @return bool|void * @throws \app\common\exceptions\AppException */ public function handle() { parent::handle(); $this->updateTable(); $this->_fireEvent(); } }