# 台球项目 **Repository Path**: liaosp/boll ## Basic Information - **Project Name**: 台球项目 - **Description**: 台球项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-21 - **Last Updated**: 2026-03-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 开发手册 ### 部署 如果是本地请设置 mytest * .env 改地址 * php artisan storage:link * chmod -R 775 cert * php artisan schedule:run 宝塔定时任务:sudo -uwww php82 /www/wwwroot/ball-api/artisan schedule:run 快捷指令 ``` php82 artisan make:request DemoRequest php82 artisan make:repo Trade/EsParentOrderRepository // 模型过滤器filter php artisan model:filter Trade\\EsAsOrder ``` 生成测试 ```bash php82 artisan make:test ShanYouTest ``` 生成数据库迁移 ```bash php82 artisan make:migration CreateUserMoneyLog ``` listener ```bash php82 artisan make:listener PaySuccess/OrderTypeWallets ``` 生成生产模型 ```bash cd E:/linuxdir/php/phpNote/build/ && php73 ball dcat online_product ``` 公司 ```bash cd D:/linuxdir/php/phpNote/build/ && php73 ball dcat online_product ``` ```bash php artisan l5-swagger:generate ``` ## 业务 添加遥控器, 1 添加闪优遥控再app里 2. 后台设备中添加设备 3. 对应的桌添加遥控即可测试 ## 支付 ### 开台支付 1. 余额支付,不需要交押金 OrderTypeWallet 2. 押金支付100元 OrderTypeBall ### 套餐支付 1. 充值套餐 OrderTypePayWalletProduct # 前端组件 * 轮播图 v2 ```php $page = new \App\Services\MiniDiy\Page(); $page->banner([['title' => 'hello', 'image' => 'https://cdn.uviewui.com/uview/swiper/swiper2.png'], ['title' => 'hello', 'image' => 'https://cdn.uviewui.com/uview/swiper/swiper2.png']]) ->banner([['title' => 'hello', 'image' => 'https://cdn.uviewui.com/uview/swiper/swiper2.png'], ['title' => 'hello', 'image' => 'https://cdn.uviewui.com/uview/swiper/swiper2.png']]); $data = $page->json(); ``` ## 核销逻辑 抖音的同步账号会把 店铺和产品都同步过来 美团因为需要店铺的id ,每个店铺的产品都可能不一样,所以需要到店铺那边点一下同步操作,再添加赠送的时间或者金额 ## 必须定时任务 php artisan app:order-should-close