ysx123/ph_invest 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ysx123/ph_invest

Composer 安装命令:

composer require ysx123/ph_invest

包简介

A face for ph invest

README 文档

README

1:通过composer安装

composer require ysx123/ph_invest:dev-master --ignore-platform-reqs

2:在项目中增加模块的路由。修改配置文件:D:\www\ysx_www\ph02\shiny-pera-ios-dc\frontend\config\main.php

 'components'=>[
 'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            //'rules' =>  $url_rules,
            'rules' =>  array_merge($url_rules,['recipe/<action:\w+>' => 'recipe/recipe/<action>']),
  ],
],
//增加模块
'modules' => [
        'recipe' => [
            'class' => 'ysx\recipe\Module',
        ],
    ],

3:app-api-doc项目增加url路由,用于混淆。修改url.php文件

    //因为这是一个独立出去的模块。所以前面加个recipe模块名
 '/recipe/recipe/recipe-type' => "credit/syncabl1",
    '/recipe/recipe/index' => "credit/syncabl2",
    '/recipe/recipe/collect-list' => "credit/syncabl3",
    '/recipe/recipe/detail' => "credit/syncabl4",
    '/recipe/recipe/collect' => "credit/syncabl5",
    '/recipe/recipe/upload-image' => "credit/syncabl6",
    '/recipe/recipe/add-recipe' => "credit/syncabl7",
    '/recipe/recipe/del-recipe' => "credit/syncabl8",
    '/recipe/recipe/my-recipe' => "credit/syncabl9",
    '/recipe/recipe/add-comment' => "credit/syncabl10",
    '/recipe/recipe/comment-list' => "credit/syncabl11",
    '/recipe/recipe/delete-comment' => "credit/syncabl12",
    '/recipe/recipe/edit-recipe' => "credit/syncabl13",
    '/recipe/recipe/report-recipe' => "LookinMe/syncabl14",
    '/recipe/recipe/report-type' => "LookinMe/syncabl15",

4:修改app-api-doc项目,增加文档,直接复制到相应项目的文档目录里。示例文档在:D:\www\ysx_www\app-api-doc\docs\ph_wealth_cash_ios\recipe.md

5:执行生成混淆路由和混淆字段

#混淆字段
php generater.php 目录名
#混淆路由
php generate_url.php 目录名 前缀

6:上传图片接口的key,固定位took,需要手动改一下文档

7:线上项目执行数据迁移,创建表

    php yii migrate --migrationPath=vendor/ysx123/ph_invest/src/migrations/

如果该迁移已经被执行过一次,那上面的命令无法再次执行,需要先删除掉执行记录。删除后再次执行上面迁移命令。

    DELETE FROM migration WHERE version = 'm230225_123456_create_recipe_table';

8:类型图标问题。如果设计图中有类型图标,需要手动上传到H5项目的中 recipe 目录,然后图片地址固定位y1.png到y10-png(这是选中的图片),未选中的是n1.png到n10.png。

ysx123/ph_invest 适用场景与选型建议

ysx123/ph_invest 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 23 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 03 月 10 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 ysx123/ph_invest 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-03-10