MCPcopy Index your code
hub / github.com/CoderOpen/waimai

github.com/CoderOpen/waimai @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,276 symbols 3,760 edges 183 files 105 documented · 8%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

概述

之前开源的是前端版本,主要是因为后端搞起来比较麻烦,一但开源可能会很多人联系咨询。 即便没有开源的时候,都有不少加好友问问题,加上自己有在上班,忙的时候会忘记回复信息,很抱歉。

安装部署

前端安装

  • front目录导入xbulider开发工具
  • 接口请求地址:

common/authorize.js 第1行的baseUrl基础请求地址,第75行左右的登录请求路经 common/service.js 第13行左右config.baseUrl的全局l基础请求地址 应用相关配置:

Vue.prototype.wechatAppId = "12313" Vue.prototype.templateId = "发送消息的模板" Vue.prototype.shareImage = "分享预览图" Vue.prototype.contactImage = "用户联系方式地址" Vue.prototype.raiseImage="赞赏码地址"

服务端安装

假设环境部署域名为 chihe.cn * 必须PHP7.2以上版本 * 导入数据库 ,选择已有的数据库导入项目目录下的chihe.sql。 修改.env 中的数据库配置信息

DB_DATABASE= //数据库 DB_USERNAME= //数据库用户 DB_PASSWORD= //数据库密码

  • 配置订阅消息通知。首先在小程序后台获取应用ID和应用密匙。修改配置文件.env

CHI_HE_MINI_PROGRAM_APP_ID= //应用ID CHI_HE_MINI_PROGRAM_SECRET= //应用密匙

然后在小程序后台选择配置订阅消息,然后对应消息模板修改 Console/Commands/ChiHe.php

第54行,修改订阅消息的文案

'thing2' => [ 'value' => '又到了吃饭时刻,快来领吃喝炒鸡优惠券啦!', ], 'thing4' => [ 'value' => '红包天天领,天天能提醒,叫外卖省省省', ],

  • 根据服务器环境安装代码,参考laravel安装文档仅仅调整好nginx或者appache配置。能访问到laravel特有的404页面即配置成功 然后到项目目录chiche-api下依次执行

php artisan key:generate php artisan jwt:secret php artisan storage:link php artisan config:clear php artisan cache:clear

可能遇到的问题: 安装phpinfo扩展, 把禁用的安全函数putenv syslink函数放开。 安装完毕后,访问域名 chihe.cn/api/chiheyouhui/project 能正常访问说明安装成功!

  • 启动订阅消息定时发送脚本。 每分钟执行一次,执行的命令是:注意要在项目目录下执行

php artisan chihe:send-msg

  • 访问管理后台,chihe.cn/chihe-admin

账号密码是admin/admin

管理友联和赚钱项目中要跳转的第三方小程序ID和小程序活动页面的路径

可参考 https://mp.weixin.qq.com/s/JHDWqBvntD0-p-dXEntSQQ

改进计划

欢迎各位大佬加入项目,让这个项目更加完善

打赏与联系作者

微信phpcoder666

Core symbols most depended-on inside this repo

a
called by 295
public/front/static/js/plugins.js
r
called by 194
public/js/app.js
n
called by 169
public/js/app.js
t
called by 129
public/js/app.js
e
called by 88
public/js/app.js
get
called by 83
front/utils/luch-request/core/Request.js
map
called by 62
app/Providers/RouteServiceProvider.php
i
called by 56
public/js/app.js

Shape

Function 1,102
Method 119
Class 55

Languages

TypeScript90%
PHP10%

Modules by API surface

public/js/app.js594 symbols
front/components/u-charts/u-charts.js107 symbols
public/front/static/js/jquery-1.11.3.min.js75 symbols
public/front/static/js/modernizr-2.8.3.min.js28 symbols
public/front/static/js/plugins.js26 symbols
public/front/static/js/jquery.magnific-popup.min.js21 symbols
front/components/uni-calendar/util.js19 symbols
front/components/mpvueGestureLock/gestureLock.js19 symbols
public/front/static/js/masonry.pkgd.js18 symbols
front/utils/luch-request/core/Request.js16 symbols
front/components/uni-swipe-action-item/bindingx.js16 symbols
front/components/uni-swipe-action-item/mpwxs.js15 symbols

Datastores touched

DB_CONNECTIONDatabase · 1 repos
DB_DATABASEDatabase · 1 repos

For agents

$ claude mcp add waimai \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact