Skip to content

Commit

Permalink
security(censor): remove qiniu
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhan005 committed Dec 29, 2023
1 parent 09412e9 commit 1cd2cb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/security/censor/censor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func Text(ctx context.Context, text string) (*TextCensorResponse, error) {
var responses []*TextCensorResponse

for _, censor := range []TextCensor{
NewQiniuTextCensor(conf.App.QiniuAccessKey, conf.App.QiniuAccessSecret),
// For we are using aliyun's API, we don't need to use qiniu's API.
//NewQiniuTextCensor(conf.App.QiniuAccessKey, conf.App.QiniuAccessSecret),
NewAliyunTextCensor(conf.App.AliyunAccessKey, conf.App.AliyunAccessKeySecret),
} {
sourceName := censor.String()
Expand Down

0 comments on commit 1cd2cb5

Please sign in to comment.