255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'acid' => '微擎公众号id', 'user_id' => 'User ID', 'name' => 'Name', 'app_id' => 'App ID', 'app_secret' => 'App Secret', 'desc' => 'Desc', 'mch_id' => 'Mch ID', 'key' => 'Key', 'cert_pem' => 'Cert Pem', 'key_pem' => 'Key Pem', 'addtime' => 'Addtime', 'is_delete' => 'Is Delete', ]; } public function afterSave($insert, $changedAttributes) { $data = $insert ? json_encode($this->attributes) : json_encode($changedAttributes); CommonActionLog::storeActionLog('', $insert, $this->is_delete, $data, $this->id); } }