承接 jncinet/qihucms-present 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jncinet/qihucms-present

Composer 安装命令:

composer require jncinet/qihucms-present

包简介

qihucms present.

README 文档

README

$ composer require jncinet/qihucms-present

使用

数据迁移

$ php artisan migrate

发布资源

$ php artisan vendor:publish --provider="Qihucms\Present\PresentServiceProvider"

后台菜单

  • 礼物列表 present/presents
  • 礼物订单 present/orders

路由能参数说明

礼物列表

route('api.present.index')
请求:GET
地址:/present/presents?pay_type_id={$pay_type_id}&...&page={$page}&limit={$limit}
参数:
int          $pay_type_id      (选填)支付货币类型
int          $exchange_type_id (选填)兑换货币类型
string       $name             (选填)根据礼物名模糊查询
int          $page             (选填)页码
int          $limit            (选填)每页显示的条数
返回值:
{
    data: [
        {
            id:礼物ID
            name:礼物名字
            thumbnail:礼物小图
            image:礼物大图
            animation:动画
            pay_currency_type:付款币类型
            pay_amount:付款数额
            unit: 礼物计数单位,
        },
        ...
    ],
    meta: {},
    links: {}
}

礼物订单列表

route('api.present.order')
请求:GET
地址:/present/orders?user_id={$user_id}&...&page={$page}&limit={$limit}
参数:
int          $user_id          (选填)送礼物会员ID
int          $to_user_id       (选填)收礼物会员ID
int          $present_id       (选填)礼物ID
0|1          $type             (选填)送出的礼物0、收到的礼物1
0|1|2        $status           (选填)礼物订单状态0失败订单,1成功订单,2异常订单
int          $page             (选填)页码
int          $limit            (选填)每页显示的条数
返回值:
{
    data: [
        {
            id:礼物ID
            present:{礼物信息}
            to_user:{收礼会员信息}  // 参数type为0时存在
            to_user_id:收礼会员ID  // 参数type为1时存在
            user:{送礼会员信息}    // 参数type为1时存在
            user_id:送礼会员ID    // 参数type为0时存在
            status:订单状态
            created_at:创建时间
            updated_at: 更新时间,
        },
        ...
    ],
    meta: {},
    links: {}
}

送礼物

route('api.present.givings')
请求:POST
地址:/present/givings
参数:
int $present_id (必填)礼物ID
int $to_user_id (必填)收礼会员ID
返回值:
{
    status: 'SUCCESS',
    result: {
        to_user_id: 礼物ID
        present_id:收礼会员ID
    }
}

事件调用

// 创建订单
Qihucms\Present\Events\GivingPresent

数据库

礼物表:presents

Field Type Length AllowNull Default Comment
id bigint
name varchar 55 礼物名称
thumbnail varchar 255 Y NULL 礼物图标
image varchar 255 Y NULL 礼物大图
animation varchar 255 Y NULL 礼物动效
pay_currency_type_id bigint 支付货币类型
pay_amount decimal 0.00 支付数额
unit varchar 15 计数单位
exchange_currency_type_id bigint 兑换货币类型
exchange_amount decimal 0.00 兑换数额
exchange_exp int 0 兑换经验
is_broadcast tinyint 0 是否广播
status tinyint 0 状态
sort int 0 排序
created_at timestamp Y NULL 创建时间
updated_at timestamp Y NULL 更新时间

礼物订单表:present_orders

Field Type Length AllowNull Default Comment
id bigint
user_id bigint 送礼会员id
to_user_id bigint 收礼会员id
present_id bigint 礼物id
status tinyint 0 状态
created_at timestamp Y NULL 创建时间
updated_at timestamp Y NULL 更新时间

jncinet/qihucms-present 适用场景与选型建议

jncinet/qihucms-present 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 11 月 14 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「present」 「qihucms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 jncinet/qihucms-present 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 jncinet/qihucms-present 我们能提供哪些服务?
定制开发 / 二次开发

基于 jncinet/qihucms-present 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-14