Update ali-sms-integration.md

This commit is contained in:
Alireza Jahanshahlou 2025-10-12 17:29:23 +03:30 committed by GitHub
parent 20b526fa1c
commit 453ca990c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,44 +1,44 @@
# 阿里云短信集成指南 # Alibaba Cloud SMS Integration Guide
登录阿里云控制台,进入“短信服务”页面:https://dysms.console.aliyun.com/overview Log in to the Alibaba Cloud console and go to the SMS service page: https://dysms.console.aliyun.com/overview
## 第一步 添加签名 ## Step 1: Add signature
![步骤](images/alisms/sms-01.png) ![Steps](images/alisms/sms-01.png)
![步骤](images/alisms/sms-02.png) ![Steps](images/alisms/sms-02.png)
以上步骤,会得到签名,请把它写入到智控台参数,`aliyun.sms.sign_name` The above steps will get the signature, please write it into the smart console parameter, `aliyun.sms.sign_name`
## 第二步 添加模版 ## Step 2: Add template
![步骤](images/alisms/sms-11.png) ![Steps](images/alisms/sms-11.png)
以上步骤,会得到模版code,请把它写入到智控台参数,`aliyun.sms.sms_code_template_code` The above steps will get the template code. Please write it into the smart console parameter, `aliyun.sms.sms_code_template_code`
注意,签名要等7个工作日,等运营商报备成功后才能发送成功。 Please note that the signature will take 7 working days to be sent successfully after the operator has successfully reported it.
注意,签名要等7个工作日,等运营商报备成功后才能发送成功。 Please note that the signature will take 7 working days to be sent successfully after the operator has successfully reported it.
注意,签名要等7个工作日,等运营商报备成功后才能发送成功。 Please note that the signature will take 7 working days to be sent successfully after the operator has successfully reported it.
可以等报备成功后,再继续往下操作。 You can wait until the report is successful before continuing with the next step.
## 第三步 创建短信账户和开通权限 ## Step 3: Create SMS account and enable permissions
登录阿里云控制台,进入“访问控制”页面:https://ram.console.aliyun.com/overview?activeTab=overview Log in to the Alibaba Cloud console and go to the Access Control page: https://ram.console.aliyun.com/overview?activeTab=overview
![步骤](images/alisms/sms-21.png) ![Steps](images/alisms/sms-21.png)
![步骤](images/alisms/sms-22.png) ![Steps](images/alisms/sms-22.png)
![步骤](images/alisms/sms-23.png) ![Steps](images/alisms/sms-23.png)
![步骤](images/alisms/sms-24.png) ![Steps](images/alisms/sms-24.png)
![步骤](images/alisms/sms-25.png) ![Steps](images/alisms/sms-25.png)
以上步骤,会得到access_key_id和access_key_secret,请把它写入到智控台参数,`aliyun.sms.access_key_id`、`aliyun.sms.access_key_secret` The above steps will get access_key_id and access_key_secret. Please write them into the smart console parameters, `aliyun.sms.access_key_id` and `aliyun.sms.access_key_secret`
## 第四步 启动手机注册功能 ## Step 4: Enable mobile phone registration
1、正常来说,以上信息都填完后,会有这个效果,如果没有,可能缺少了某个步骤 1. Normally, after filling in the above information, this effect will appear. If not, you may be missing a step.
![步骤](images/alisms/sms-31.png) ![Steps](images/alisms/sms-31.png)
2、开启允许非管理员用户可注册,将参数`server.allow_user_register`设置成`true` 2. Enable non-administrator users to register by setting the parameter `server.allow_user_register` to `true`
3、开启手机注册功能,将参数`server.enable_mobile_register`设置成`true` 3. Enable mobile phone registration by setting the parameter `server.enable_mobile_register` to `true`
![步骤](images/alisms/sms-32.png) ![Steps](images/alisms/sms-32.png)