安装php拓展ext-zip
thinkphp中使用计划任务
thinkphp中使用计划任务
一、需求
数据库有两个字段enter_time
入驻时间与status
状态,当入驻时间超过指定时间时,要求将状态设置为指定状态。
二、解决方案
方案1:使用计划任务,定时判断入驻时间是否超过指定时间。
github库:think-cron(https://github.com/yunwuxin/think-cron)
thinkphp导出excel
thinkphp导出excel
使用库:PHPOffice/PHPExcel https://github.com/PHPOffice/PHPExcel
以下为核心代码:可根据具体需求更改。
1、控制器文件添加export
方法
npm ERR code 128
npm ERR code 128
1 | npm ERR! code 128 |
从git克隆下来的vue-element-admin
安装依赖时报错。
OkHttp与Retrofit
OkHttp与Retrofit
一、OkHttp框架
1.1 什么是OkHttp
https://square.github.io/okhttp/
有Square公司贡献的一个处理网络请求的开源项目,是目前Android使用最广泛的网络框架。从Android 4.4开始HttpURLConnection的底层实现采用的是OkHttp。