feat: 添加阿里云短信服务支持并优化验证码逻辑
- 引入 alibabacloud/dysmsapi-20170525 依赖,集成阿里云短信服务 - 将短信验证码从6位改为4位,优化用户体验 - 添加聚水潭商品按时间范围同步功能,支持分页拉取 - 增强Cron任务异常处理,添加错误日志记录 - 修复系统附件服务中图片路径处理逻辑 - 更新阿里云SDK相关组件至最新版本 - 添加think-trace调试扩展,便于问题排查 - 优化跨域中间件,使用str_contains替代strpos
This commit is contained in:
@@ -80,6 +80,12 @@ class OrderServices
|
||||
|
||||
$biz = array_merge($biz, $this->getAddress($order['user_address']));
|
||||
|
||||
Log::info('jst.orders_upload.request ' . json_encode([
|
||||
'api' => 'open/jushuitan/orders/upload',
|
||||
'oid' => $oid,
|
||||
'biz' => $biz,
|
||||
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES));
|
||||
|
||||
$num = 3;
|
||||
for ($i = $num; $i >= 0; $i--) {
|
||||
if ($i <= 0) {
|
||||
@@ -544,7 +550,7 @@ class OrderServices
|
||||
public function getShopId(int $erpShopId): int
|
||||
{
|
||||
if ($erpShopId < 1) {
|
||||
$erpShopId = sys_config('jst_default_shopid');
|
||||
$erpShopId = (int)app('sysConfig')->get('jst_default_shopid');
|
||||
}
|
||||
|
||||
return (int)$erpShopId;
|
||||
|
||||
Reference in New Issue
Block a user