Files
douba_shop/test_debug.php
Karlcarlo c7f85ffbda feat: 添加阿里云短信服务支持并优化验证码逻辑
- 引入 alibabacloud/dysmsapi-20170525 依赖,集成阿里云短信服务
- 将短信验证码从6位改为4位,优化用户体验
- 添加聚水潭商品按时间范围同步功能,支持分页拉取
- 增强Cron任务异常处理,添加错误日志记录
- 修复系统附件服务中图片路径处理逻辑
- 更新阿里云SDK相关组件至最新版本
- 添加think-trace调试扩展,便于问题排查
- 优化跨域中间件,使用str_contains替代strpos
2026-04-30 15:19:40 +08:00

41 lines
1.1 KiB
PHP
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env php
<?php
namespace think;
require __DIR__ . '/vendor/autoload.php';
echo "========================================\n";
echo "聚水潭商品拉取调试\n";
echo "========================================\n\n";
$app = new App();
$app->initialize();
try {
$haichaoJst = \app\haichao\HaichaoJstServices::getServices();
echo "1️⃣ 测试 getProductListStand()...\n\n";
$result1 = $haichaoJst->getProductListStand();
echo "返回类型: " . gettype($result1) . "\n";
echo "原始数据:\n";
print_r($result1);
echo "\n2️⃣ 测试 getInneropenItemList()...\n\n";
try {
$result2 = $haichaoJst->getInneropenItemList();
echo "返回类型: " . gettype($result2) . "\n";
echo "数据数量: " . count($result2) . "\n";
if (!empty($result2)) {
echo "第一条数据:\n";
print_r($result2[0]);
}
} catch (\Throwable $e) {
echo "❌ 失败: " . $e->getMessage() . "\n";
}
} catch (\Throwable $e) {
echo "\n❌ 错误: " . $e->getMessage() . "\n";
}