12 2020 档案
摘要:根据网友的设计进行了部分调整: 用户分为管理员admin表和用户user表 记录操作表数据 增删改: insert/delete/update <?php /** * OperateLog.php * description */ namespace app\service; use think\D
阅读全文
摘要:{*<div class="col-sm-10">*} phpstorm注释tpl文件代码为上面,但是这个不符合本框架的注释方式,会报错,需要调整为: <!-- <div class="col-sm-10"> --> 方式:打开setting之后,在IDE Setting中的File Types(也
阅读全文
摘要:用到了 order by if 和 count 使用的是TP5.0 $sql = Db::name('teacher') ->alias('t') ->join('user u', 'u.user_id = t.user_id') ->join('tiwen tw', 'tw.teacher_use
阅读全文
摘要:这是七牛技术给的demo <?php require_once __DIR__ . '/../autoload.php'; use \Qiniu\Auth; use Qiniu\Http\Client; $accessKey = 'xxxx'; $secretKey = 'xxxx'; $auth
阅读全文
摘要:Db::name('tiwen') ->where('user_id', $user_id) ->where(function ($query) { $query->where(function ($q1) { $q1->where([ 'is_status' => 3, 'is_pingjia'
阅读全文