Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support Uni SMS #2942

Closed
wants to merge 0 commits into from
Closed

feat: support Uni SMS #2942

wants to merge 0 commits into from

Conversation

cutedrag0n
Copy link

No description provided.

@casbin-bot
Copy link
Contributor

@tangyang9464 @imp2002 please review

go.mod Outdated
@@ -5,16 +5,19 @@ go 1.16
require (
github.com/Masterminds/squirrel v1.5.3
github.com/alexedwards/argon2id v0.0.0-20211130144151-3585854a6387
github.com/aws/aws-sdk-go v1.45.5
github.com/aliyun/alibaba-cloud-sdk-go v1.62.733 // indirect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why update github.com/aliyun/alibaba-cloud-sdk-go?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why update github.com/aliyun/alibaba-cloud-sdk-go?

To upgrade the sender library, first execute the command go get -u github.com/casdoor/go-sms-sender, and then after completing the local development and testing, execute the go mod tidy command.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cutedrag0n I have updated the version, see commit: 3456fc6

And I also ran go mod tidy, there's no that much diff as yours.

Anyway, you don't need to do this again, as I have did this.

@@ -207,7 +207,7 @@ class ProviderEditPage extends React.Component {
return Setting.getLabel(i18next.t("provider:App key"), i18next.t("provider:App key - Tooltip"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to add it in backend Go code

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to add it in backend Go code

What is this parameter for? This platform does not have an option for an app key.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cutedrag0n I said you didn't modify the Go code for your new provider, which is wrong. Did it work if you don't modify it? I doubt so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants