Compare commits
No commits in common. 'master' and 'main' have entirely different histories.
@ -1 +0,0 @@
|
|||||||
Subproject commit f77c57bff10f52d0cc2b5ff80af0c5e8ffdac54f
|
|
||||||
|
After Width: | Height: | Size: 2.3 MiB |
|
After Width: | Height: | Size: 966 KiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 184 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 422 KiB |
|
After Width: | Height: | Size: 3.2 MiB |
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 635 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 3.3 MiB |
|
After Width: | Height: | Size: 888 KiB |
|
After Width: | Height: | Size: 682 KiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 692 KiB |
|
After Width: | Height: | Size: 934 KiB |
|
After Width: | Height: | Size: 644 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 451 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 823 KiB |
|
After Width: | Height: | Size: 4.3 MiB |
|
After Width: | Height: | Size: 2.9 MiB |
|
After Width: | Height: | Size: 6.6 MiB |
|
After Width: | Height: | Size: 207 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 158 KiB |
|
After Width: | Height: | Size: 160 KiB |
|
After Width: | Height: | Size: 123 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 314 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 238 KiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 306 KiB |
@ -0,0 +1,14 @@
|
|||||||
|
# Windows
|
||||||
|
[Dd]esktop.ini
|
||||||
|
Thumbs.db
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# macOS
|
||||||
|
.DS_Store
|
||||||
|
.fseventsd
|
||||||
|
.Spotlight-V100
|
||||||
|
.TemporaryItems
|
||||||
|
.Trashes
|
||||||
|
|
||||||
|
# Node.js
|
||||||
|
node_modules/
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"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": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
// 测试云函数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();
|
||||||
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 273 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 2.5 MiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 366 KiB |
|
After Width: | Height: | Size: 294 KiB |