Compare commits
No commits in common. 'main' and 'master' have entirely different histories.
@ -0,0 +1 @@
|
|||||||
|
Subproject commit f77c57bff10f52d0cc2b5ff80af0c5e8ffdac54f
|
||||||
|
Before Width: | Height: | Size: 2.3 MiB |
|
Before Width: | Height: | Size: 966 KiB |
|
Before Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 184 KiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 422 KiB |
|
Before Width: | Height: | Size: 3.2 MiB |
|
Before Width: | Height: | Size: 2.2 MiB |
|
Before Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 635 KiB |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 3.3 MiB |
|
Before Width: | Height: | Size: 888 KiB |
|
Before Width: | Height: | Size: 682 KiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 692 KiB |
|
Before Width: | Height: | Size: 934 KiB |
|
Before Width: | Height: | Size: 644 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 451 KiB |
|
Before Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 823 KiB |
|
Before Width: | Height: | Size: 4.3 MiB |
|
Before Width: | Height: | Size: 2.9 MiB |
|
Before Width: | Height: | Size: 6.6 MiB |
|
Before Width: | Height: | Size: 207 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 160 KiB |
|
Before Width: | Height: | Size: 123 KiB |
|
Before Width: | Height: | Size: 149 KiB |
|
Before Width: | Height: | Size: 314 KiB |
|
Before Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 238 KiB |
|
Before Width: | Height: | Size: 2.1 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 306 KiB |
@ -1,14 +0,0 @@
|
|||||||
# Windows
|
|
||||||
[Dd]esktop.ini
|
|
||||||
Thumbs.db
|
|
||||||
$RECYCLE.BIN/
|
|
||||||
|
|
||||||
# macOS
|
|
||||||
.DS_Store
|
|
||||||
.fseventsd
|
|
||||||
.Spotlight-V100
|
|
||||||
.TemporaryItems
|
|
||||||
.Trashes
|
|
||||||
|
|
||||||
# Node.js
|
|
||||||
node_modules/
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"permissions": {
|
|
||||||
"openapi": [
|
|
||||||
"wxacode.get"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"timeout": 300,
|
|
||||||
"envVariables": {
|
|
||||||
"QQMAP_KEY": "QBJBZ-E433N-DYYFX-SDC5E-EUB3V-MJBOE",
|
|
||||||
"QQMAP_KEYS": "7YTBZ-DTQHW-RPURE-YWKGQ-UTODK-RZFVP",
|
|
||||||
"QQMAP_REFERER": "https://servicewechat.com",
|
|
||||||
"QQMAP_SK": ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "quickstartFunctions",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"description": "",
|
|
||||||
"main": "index.js",
|
|
||||||
"scripts": {
|
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
|
||||||
},
|
|
||||||
"author": "",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"@coze/api": "^1.3.7",
|
|
||||||
"axios": "^1.13.1",
|
|
||||||
"form-data": "^4.0.4",
|
|
||||||
"wx-server-sdk": "~2.4.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,28 +0,0 @@
|
|||||||
// 测试云函数AI定价功能
|
|
||||||
async function testCloudFunction() {
|
|
||||||
try {
|
|
||||||
console.log('开始测试云函数AI定价功能...');
|
|
||||||
|
|
||||||
// 模拟云函数调用 - 使用用户提供的具体图片URL
|
|
||||||
const event = {
|
|
||||||
type: 'analyzeProductPrice',
|
|
||||||
imageUrl: 'https://pic1.zhimg.com/v2-24d60d3e9a24ce8d1f3ee0d9f05f929c_b.jpg',
|
|
||||||
originalPrice: 100
|
|
||||||
};
|
|
||||||
|
|
||||||
// 导入云函数
|
|
||||||
const cloudFunction = require('./index.js');
|
|
||||||
|
|
||||||
console.log('调用云函数analyzeProductPrice...');
|
|
||||||
const result = await cloudFunction.main(event, {});
|
|
||||||
|
|
||||||
console.log('云函数调用结果:', JSON.stringify(result, null, 2));
|
|
||||||
|
|
||||||
} catch (error) {
|
|
||||||
console.error('❌ 测试过程中发生错误:', error.message);
|
|
||||||
console.error('错误堆栈:', error.stack);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 运行测试
|
|
||||||
testCloudFunction();
|
|
||||||
|
Before Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 273 KiB |
|
Before Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 2.5 MiB |
|
Before Width: | Height: | Size: 154 KiB |
|
Before Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 166 KiB |
|
Before Width: | Height: | Size: 366 KiB |
|
Before Width: | Height: | Size: 294 KiB |