
thinphp5
桔子爱笑
这个作者很懒,什么都没留下…
展开
-
thinkphp5 easywechat 报错 Failed to cache access token
https://www.wenjiangs.com/doc/fxyjfyrx按照网上的方法,设置了/tmp目录的权限也是不行,找了资料发现easywechat 可以通过Symfony设置缓存的方式,但是需要依赖predisuse Symfony\Component\Cache\Adapter\RedisAdapter;// 创建 redis 实例$client = new \Predis\Client('tcp://10.0.0.1:6379');// 创建缓存实例$cache = new原创 2022-05-09 17:59:01 · 1571 阅读 · 0 评论 -
thinkphp5.1联合查询
需求:查询log_consump表中的记录和merchants_order表中的记录并合并分页话不多说上代码 $data=Db::field('member_id,consump_price,biz_id,consump_type') ->table('log_consump') ->where($where_biz) ->union(function($query){ $where原创 2021-01-27 15:39:19 · 716 阅读 · 0 评论 -
thinkphp5 volist 嵌套
{volist name="type_arr" id='tav' key='tak' } <div class="card"> <div class="card-body"> <h4 class="card-title">{:lang('check_type')[$tak]}</h4> <table class="table table-borde.原创 2020-12-26 13:26:30 · 459 阅读 · 0 评论 -
Call to a member function XXX on array
话不多说上图转载 2020-09-29 14:15:38 · 1573 阅读 · 0 评论