feat: 添加阿里云短信服务支持并优化验证码逻辑
- 引入 alibabacloud/dysmsapi-20170525 依赖,集成阿里云短信服务 - 将短信验证码从6位改为4位,优化用户体验 - 添加聚水潭商品按时间范围同步功能,支持分页拉取 - 增强Cron任务异常处理,添加错误日志记录 - 修复系统附件服务中图片路径处理逻辑 - 更新阿里云SDK相关组件至最新版本 - 添加think-trace调试扩展,便于问题排查 - 优化跨域中间件,使用str_contains替代strpos
This commit is contained in:
@@ -108,6 +108,9 @@ class Common extends AuthController
|
||||
*/
|
||||
public function homeStatics(SupplierOrderServices $orderServices)
|
||||
{
|
||||
if (!(int)$this->supplierId) {
|
||||
return $this->fail('登录已失效');
|
||||
}
|
||||
[$time] = $this->request->getMore([
|
||||
['data', '', '', 'time']
|
||||
], true);
|
||||
@@ -123,6 +126,9 @@ class Common extends AuthController
|
||||
*/
|
||||
public function orderChart(SupplierOrderServices $orderServices)
|
||||
{
|
||||
if (!(int)$this->supplierId) {
|
||||
return $this->fail('登录已失效');
|
||||
}
|
||||
[$time] = $this->request->getMore([
|
||||
['data', '', '', 'time']
|
||||
], true);
|
||||
@@ -138,6 +144,9 @@ class Common extends AuthController
|
||||
*/
|
||||
public function orderType(SupplierOrderServices $orderServices)
|
||||
{
|
||||
if (!(int)$this->supplierId) {
|
||||
return $this->fail('登录已失效');
|
||||
}
|
||||
[$time] = $this->request->getMore([
|
||||
['data', '', '', 'time']
|
||||
], true);
|
||||
@@ -153,6 +162,9 @@ class Common extends AuthController
|
||||
*/
|
||||
public function orderChannel(SupplierOrderServices $orderServices)
|
||||
{
|
||||
if (!(int)$this->supplierId) {
|
||||
return $this->fail('登录已失效');
|
||||
}
|
||||
[$time] = $this->request->getMore([
|
||||
['data', '', '', 'time']
|
||||
], true);
|
||||
@@ -167,6 +179,9 @@ class Common extends AuthController
|
||||
*/
|
||||
public function jnotice()
|
||||
{
|
||||
if (!(int)$this->supplierId) {
|
||||
return $this->fail('登录已失效');
|
||||
}
|
||||
/** @var StoreOrderServices $orderServices */
|
||||
$orderServices = app()->make(StoreOrderServices::class);
|
||||
$orderNum = $orderServices->storeOrderCount((int)$this->supplierId, -1, 'supplier_id');
|
||||
|
||||
@@ -168,7 +168,7 @@ class Login
|
||||
$verifyCode = CacheService::get('code_' . $account);
|
||||
if (!$verifyCode)
|
||||
return app('json')->fail('请先获取验证码');
|
||||
$verifyCode = substr($verifyCode, 0, 6);
|
||||
$verifyCode = substr($verifyCode, 0, 4);
|
||||
if ($verifyCode != $captcha) {
|
||||
return app('json')->fail('验证码错误');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user