Giter Site home page Giter Site logo

lehuoshe / waimai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coderopen/waimai

0.0 0.0 0.0 26.71 MB

外卖优惠券小程序—吃喝优惠券前后端完整代码开源,真正的6个点消费额推广美团优惠券和饿了么优惠券,支持H5,可视化后台支持任意添加带有活动页面的CPS项目,花小猪,各种社区团购等

License: MIT License

Shell 0.04% HTML 2.15% PHP 17.83% Vue 29.42% JavaScript 47.72% CSS 2.21% SCSS 0.25% Blade 0.38%

waimai's Introduction

安装部署

假设环境部署域名为 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/admin

    账号密码是admin/admin

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

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

waimai's People

Contributors

lajun avatar leixiaokou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.