feat: move miniapp server project

This commit is contained in:
ckaaaa 2025-09-18 10:36:08 +08:00
parent 4a940f28ba
commit 96d9063b13
178 changed files with 9699 additions and 5044 deletions

0
public/.htaccess Normal file
View file

97
public/api.md Normal file
View file

@ -0,0 +1,97 @@
## 获取现在的功能
> POST /index.php/v1/goods_list
|参数名|必须|类型|备注|
|:-|:-|:-|:-|
|无|-|-|-|
返回值
```json
[
{
{
"id": 1,
"title": "照片上色",
"summary": "给照片上色",
"icon": "/upload/test.png",
"price": 1, // 价格,分,显示的时候要转成源
"sort": 999,
"funct_name": "mark_order_zhaopianshangse", // 下单的时候调用的接口名
},
...
}
]
```
## 下单照片上色
> POST /index.php/v1/mark_order_zhaopianshangse
|参数名|必须|类型|备注|
|:-|:-|:-|:-|
|goods_id|Y|int|goods_list接口返回的id|
|path|Y|string|wx_upload接口上传的图片返回的path|
返回值
```json
{
"order_no":"Z1231231231231", // 订单号
}
```
## 下单一寸照
> POST /index.php/v1/mark_order_yiCunZhao
|参数名|必须|类型|备注|
|:-|:-|:-|:-|
|goods_id|Y|int|goods_list接口返回的id|
|path|Y|string|wx_upload接口上传的图片返回的path|
|color|Y|enum|enum[blue,red,white],背景色|
返回值
```json
{
"order_no":"Z1231231231231", // 订单号
}
```
## 下单VIP
> POST /index.php/v1/mark_order_vip
|参数名|必须|类型|备注|
|:-|:-|:-|:-|
|goods_id|Y|int|goods_list接口返回的id|
|num|Y|int|买几个月,默认是1|
返回值
```json
{
"order_no":"Z1231231231231", // 订单号
}
```
## 查询订单状态
> POST /index.php/v1/fetch_order
|参数名|必须|类型|备注|
|:-|:-|:-|:-|
|order_no|Y|string|订单号|
返回值
```json
{
"id": 2,
"user_id": 1,
"goods_id": 1,
"from_user_id": null,
"create_time": "2025-05-17 21:45:37",
"pay_time": null,
"status": "wait_pay", // 支付状态,wait_pay待付款,cancal取消,wait_refund,等待退款refund已退款
"order_no": "Z5051721453701",
"price": 1,
"pay_wx_refund_data": null,
"deal_status": "init", // 任务处理状态,init待处理,ing处理中,done处理成功,fail处理失败
"funct_name": "mark_order_zhaopianshangse",
"deal_result":"https://aluyun.com/a.jpg",// 处理结果,处理图片的,就返回图片下载路径,要及时获取,可能超时就获取不到图
}
```

0
public/favicon.ico Normal file
View file

24
public/index.php Normal file
View file

@ -0,0 +1,24 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2019 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// [ 应用入口文件 ]
namespace think;
require __DIR__ . '/../vendor/autoload.php';
// 执行HTTP应用并响应
$http = (new App())->http;
$response = $http->run();
$response->send();
$http->end($response);

0
public/nginx.htaccess Normal file
View file

2044
public/pma.php Normal file

File diff suppressed because one or more lines are too long

2
public/robots.txt Normal file
View file

@ -0,0 +1,2 @@
User-agent: *
Disallow: /

19
public/router.php Normal file
View file

@ -0,0 +1,19 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2019 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["SCRIPT_NAME"])) {
return false;
} else {
$_SERVER["SCRIPT_FILENAME"] = __DIR__ . '/index.php';
require __DIR__ . "/index.php";
}

BIN
public/static/bg_take.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
public/static/camera.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 642 B

BIN
public/static/header.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
public/static/liii_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB