```
//
public function getWeek() {
// Db::name('UserLog')->field('create_time')
$data = Db::name('UserLog') // 查询所有数据
->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
->group("date")
->order('date', 'asc')
// ->whereWeek('create_time')
->select();
$data_first = Db::name('UserLog') // 查询本周数据
->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
->group("date")
->order('date', 'asc')
->whereWeek('create_time')
->select();
$monday = mondayTime(time() + 24 * 3600 * 2, false); // 本周星期一
$lastmonday = date("Y-m-d", strtotime("$monday -7 day")); // 上周星期一
// $lastmonday = mondayTime(time(), false); // 上周星期一
// $startTime = strtotime($monday);
$startTime = strtotime($lastmonday);
// 补全日期
$ArrayData = addArrayData($startTime, $data_first);
// 集合点击量
foreach($ArrayData as $k=>$v){
$date[] = explode(',',$v['date']);
}
foreach($date as $k=>$v){
$date1[] = implode($v);
$index = array_search($v,$date);
$nums[$index] = $ArrayData[$index]['count'];
}
$this_week = [
'date' => $date1,
'count' => $nums
];
$data_second = Db::name('UserLog') // 查询上周数据
->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
->group("date")
->order('date', 'asc')
->whereWeek('create_time', 'last week')
->select();
$lastmonday = mondayTime(time(), false); // 上周星期一
$lastStartTime = strtotime($lastmonday);
// 补全日期
$lastArrayData = addArrayData($lastStartTime, $data_second);
// 集合点击量
foreach($lastArrayData as $k=>$v){
$lastdate[] = explode(',',$v['date']);
}
foreach($lastdate as $k=>$v){
$lastdate1[] = implode($v);
$index = array_search($v,$lastdate);
$lastnums[$index] = $lastArrayData[$index]['count'];
}
$last_week = [
'date' => $lastdate1,
'count' => $lastnums
];
// -------------------------------------
$param = get_params();
$array = [];
if($param){
$day = $param['day'];
} else {
$day = 7;
}
for ($i = $day - 1; 0 <= $i; $i--) {
$array[] = date('Y-m-d', strtotime('-' . $i . ' day'));
$daysnums[] = 0;
}
$result = DB::table('muapi_user_log')
->field('count(*) as count,date(FROM_UNIXTIME(create_time,"%Y%m%d")) as create_time')
->group("date_format(from_unixtime(create_time),'%Y%m%d')")
->where('DATE_SUB(CURDATE(), INTERVAL '.$day.' DAY) <= date(from_unixtime(create_time))')
->select()
->toArray();
array_walk($result, function ($value, $key) use ($array, &$daysnums) {
$index = array_search($value['create_time'],$array);
$daysnums[$index] = $value['count'];
});
$data = [
'date' => $array,
'count' => $daysnums
];
return to_assign(0, '', [
// 'data' => $data_first,
// 'ArrayData' => $ArrayData,
'this_week' => $this_week,
'last_week' => $last_week,
'7days' => $data,
]);
$data_three = Db::name('UserLog') // 查询2022-7-4到2019-7-10的数据
->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
->group("date")
->order('date', 'asc')
->whereWeek('create_time', '2022-7-4')
->select();
return to_assign(0, '', [
'data' => $data,
// 'date' => $date,
// // 'count' => $count,
// 'ArrayData' => $ArrayData,
// 'initData' => $initData,
'this_week' => $data_first,
'last_week' => $data_second,
'data_three'=>$data_three
// 'data_first' => day_document($data_first),
// 'data_second' => date_document($data_second),
// 'data_three'=>date_document($data_three)
]);
}
function get_week_xq()
{
// $date = strtotime(date("Y-m-d"));
$date = strtotime("today");
//强制转换日期格式1657296000
$date_str = date('Y-m-d', strtotime("today"));
// $date_str = strtotime(date("Y-m-d"));
//封装成数组
$arr = explode("-", $date_str);
//参数赋值
//年
$year = $arr[0];
//月,输出2位整型,不够2位右对齐
$month = sprintf('%02d', $arr[1]);
//日,输出2位整型,不够2位右对齐
$day = sprintf('%02d', $arr[2]);
//时分秒默认赋值为0;
$hour = $minute = $second = 0;
//转换成时间戳
// $strap = int(mktime($hour, $minute, $second, $month, $day, $year));
// $strap = int mktime(int $hour, int $minute, int $second, int $month, int $day, int $year, int );
// $strap = $hour.'-'.$day.'-'.$month.'-'.$year;
$strap = date("Y-m-d+H:i:s",time());
// return $strap;
//获取数字型星期几
// $number_wk = date("w", $strap);
// initData
$end_time = strtotime(date("Y-m-d"));
$begin_time = strtotime(date("Y-m-d", strtotime("-1 week +1 day", $end_time)));
$keys = array_map(function ($time) {
return date("Y-m-d", $time);
}, range($begin_time, $end_time, 24 * 3600));
// $initData = array_combine($keys, array_fill(0, count($keys), 0));
// $number_wk = date("w");//20220704
$number_wk = date("w", 20220704000000);
//获取数字对应的星期
// return $number_wk;
//自定义星期数组
//$weekArr = array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
//获取数字对应的星期
//return $weekArr[$number_wk];
return to_assign(0, '', [
'data' => $number_wk,
'arr' => $year,
'date' => $keys,
// // 'count' => $count,
// 'ArrayData' => $ArrayData,
// // 'initData' => $initData,
// 'this_week' => $data_first,
// 'last_week' => $data_second,
'weekArr'=>$keys[$number_wk],
// // 'data_first' => day_document($data_first),
// // 'data_second' => date_document($data_second),
// // 'data_three'=>date_document($data_three)
]);
}
function get_7day() {
$order_list = DB::table('muapi_user_log')
->field('count(*) as count,date(FROM_UNIXTIME(create_time,"%Y%m%d")) as create_time')
->group("date_format(from_unixtime(create_time),'%Y%m%d')")
->where('DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(from_unixtime(create_time))')
->select();
//sql语
//SELECT count(*) as count,date(FROM_UNIXTIME(create_time,"%Y%m%d")) as create_time,sum(total) as total FROM `qqxz_orders` WHERE ( DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(from_unixtime(create_time)) ) GROUP BY date_format(from_unixtime(create_time),'%Y%m%d')
$order_list_arr = $order_list->toArray();
if($param){
$day = $param['day'];
} else {
$day = 7;
}
for ($i = $day - 1; 0 <= $i; $i--) {
$result[] = date('Y-m-d', strtotime('-' . $i . ' day'));
$nums[] = 0;
// $total[] = 0;
}
array_walk($order_list_arr, function ($value, $key) use ($result, &$nums) {
$index = array_search($value['create_time'],$result);
$nums[$index] = $value['count'];
// $total[$index] = $value['total'];
});
$data = [
'day' => $result,
'nums' => $nums,
// 'total' =>$total
];
halt($data);
}
// ok 比较复杂
public function getWeek000() {
$end_time = strtotime(date("Y-m-d"));
$begin_time = strtotime(date("Y-m-d", strtotime("-1 week +1 day", $end_time)));
$data_first = DB::table('muapi_user_log')
->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
->whereTime('create_time', 'between', [$begin_time, $end_time])
->group("date")
->order('date', 'asc')
->select()
->toArray();
// 补全日期
$ArrayData = addArrayData($begin_time, $data_first);
// 集合点击量
foreach($ArrayData as $k=>$v){
$date[] = explode(',',$v['date']);
}
foreach($date as $k=>$v){
$index = array_search($v,$date);
$nums[$index] = $ArrayData[$index]['count'];
}
return to_assign(0, '', [
'data' => $data_first,
'ArrayData' => $ArrayData,
'nums' => $nums,
]);
}
// 7天统计
public function getWeek7() {
$end_time = strtotime(date("Y-m-d"));
$begin_time = strtotime(date("Y-m-d", strtotime("-1 week +1 day", $end_time)));
$array = [];
if($param){
$day = $param['day'];
} else {
$day = 7;
}
for ($i = $day - 1; 0 <= $i; $i--) {
$array[] = date('Y-m-d', strtotime('-' . $i . ' day'));
$nums[] = 0;
}
$result = DB::table('muapi_user_log')
->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
// ->whereTime('create_time', 'between', [$begin_time, $end_time])
->whereTime('create_time', 'between', [$array[0], $array[6]])
->group("date")
->order('date', 'asc')
->select()
->toArray();
array_walk($result, function ($value, $key) use ($array, &$nums) {
$index = array_search($value['date'],$array);
$nums[$index] = $value['count'];
});
$data = [
'date' => $array,
'count' => $nums
];
$ArrayData = addArrayData($begin_time, $result);
foreach($ArrayData as $k=>$v){
$date[] = explode(',',$v['date']);
$index = array_search($v['date'],$date);
$nums[$index] = $v['count'];
}
return to_assign(0, '', [
'data' => $data,
'ArrayData' => $ArrayData,
'result' => $nums,
]);
}
// public function getWeek() {
// $array = [];
// $day = 7;
// for ($i = $day - 1; 0 <= $i; $i--) {
// $array[] = date('Y-m-d 00:00:00', strtotime('-' . $i . ' day'));
// $nums[] = 0;
// }
// $result = DB::table('data_insert_days')
// ->select([
// DB::raw("FROM_UNIXTIME(UNIX_TIMESTAMP(time),'%Y-%m-%d') as date"),
// DB::raw('sum(number) AS count'),
// ])
// ->whereBetween('time', [Carbon::yesterday()->subDays(7), Carbon::now()])
// ->groupBy("date")
// ->orderBy('date', 'asc')
// ->get()
// ->toArray();
// array_walk($result, function ($value, $key) use ($array, &$nums) {
// $index = array_search($value->date,$array);
// $nums[$index] = $value->count;
// });
// $data = [
// 'date' => $array,
// 'count' => $nums
// ];
// }
function test()
{
$data_first = Db::name('UserLog') // 查询本周数据
->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
->group("date")
->order('date', 'asc')
->whereWeek('create_time')
->select()
->toArray();
// initData 本周
$end_time = strtotime(date("Y-m-d"));
$begin_time = strtotime(date("Y-m-d", strtotime("-1 week +1 day", $end_time)));
$keys = array_map(function ($time) {
return date("Y-m-d", $time);
}, range($begin_time, $end_time, 24 * 3600));
// $initData = array_combine($keys, array_fill(0, count($keys), 0));
// 填充0 [0,0,0,0,0,0,0]
$count = array_fill(0, count($keys), 0);
//
array_walk($data_first, function ($value, $key) use ($keys, &$count) {
$index = array_search($value['date'],$keys);
$count[$index] = $value['count'];
});
// "date": ["2022-07-04","2022-07-05","2022-07-06","2022-07-07","2022-07-08","2022-07-09","2022-07-10"],
// "count": [3,7,0,0,1,4,0]
$data = [
'all' => array_combine($keys, $count),
'date' => $keys,
'count' => $count
];
// 组合 "2022-07-07": 0,
$initData = array_combine($keys, $count);
// 上一周
$data_second = Db::name('UserLog') // 查询上周数据
->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
->group("date")
->order('date', 'asc')
->whereWeek('create_time', 'last week')
->select()
->toArray();
$last_end_time = strtotime(date("Y-m-d", strtotime("-1 week", $end_time)));
$last_begin_time = strtotime(date("Y-m-d", strtotime("-2 week +1 day", $end_time)));
$keys2 = array_map(function ($time) {
return date("Y-m-d", $time);
}, range($last_begin_time, $last_end_time, 24 * 3600));
$count2 = array_fill(0, count($keys2), 0);
array_walk($data_second, function ($value, $key) use ($keys2, &$count2) {
$index = array_search($value['date'],$keys2);
$count2[$index] = $value['count'];
});
$data2 = [
'all' => array_combine($keys2, $count2),
'date' => $keys2,
'count' => $count2
];
// $initData2 = array_combine($keys2, $count2);
// 7days
$param = get_params();
if($param){
$day = $param['day'];
} else {
$day = 7;
}
$array = [];
for ($i = $day - 1; 0 <= $i; $i--) {
$array[] = date('Y-m-d', strtotime('-' . $i . ' day'));
$daysnums[] = 0;
}
$result = DB::table('muapi_user_log')
->field('count(*) as count,date(FROM_UNIXTIME(create_time,"%Y%m%d")) as create_time')
->group("date_format(from_unixtime(create_time),'%Y%m%d')")
->where('DATE_SUB(CURDATE(), INTERVAL '.$day.' DAY) <= date(from_unixtime(create_time))')
->select()
->toArray();
array_walk($result, function ($value, $key) use ($array, &$daysnums) {
$index = array_search($value['create_time'],$array);
$daysnums[$index] = $value['count'];
});
$data3 = [
'date' => $array,
'count' => $daysnums
];
return to_assign(0, '', [
// 'data' => $data,
// 'data_first' => $initData,
// 'data_second' => $initData2,
// 'initData' => $initData,
// 'date' => $keys,
// 'count' => $count,
// 'last_time' => $last_time,
// 'last_begin_time' => $last_begin_time,
// 'date2' => $keys2,
'this_week' => $data,
'last_week' => $data2,
'data_three'=> $data3,
// // 'data_first' => day_document($data_first),
// // 'data_second' => date_document($data_second),
// // 'data_three'=>date_document($data_three)
]);
}
// 单独使用的差异
function getMonday() {
// $data = mondayTime(time() + 24 * 3600 * 2, false); // 下个星期一
// $data = mondayTime(time(), false); // 本周星期一
// $data = mondayTime(time() - 24 * 3600 * 7, false); //
// $begin_time = strtotime(date("Y-m-d", strtotime("-1 week +1 day", $end_time)));
$monday = mondayTime(time() + 24 * 3600 * 2, false); // 本周星期一
$lastmonday = date("Y-m-d", strtotime("$monday -7 day")); // 上周星期一
// $end_time = strtotime($monday);
// $data = date("Y-m-d", strtotime("-1 week +1 day", $end_time));
return to_assign(0, '', [
// 'data' => $data,
'monday' => $monday,
'lastmonday' => $lastmonday,
]);
}
public function getWeek00() {
$monday = mondayTime(time() + 24 * 3600 * 2, false); // 本周星期一
$lastmonday = date("Y-m-d", strtotime("$monday -7 day")); // 上周星期一
$lastmonday_end_time = strtotime($monday);
$lastmonday_begin_time = strtotime(date("Y-m-d", strtotime("$lastmonday"))); //上一周结束
// $lastmonday = date("Y-m-d", strtotime("$monday +7 day")); // 上周星期一
$monday_begin_time = strtotime("$monday"); // 本周星期一
$monday_end_time = strtotime(date("Y-m-d", strtotime("$monday +6 day"))); //上一周结束
// $monday_begin_time = $monday;
// $end_time = strtotime(date("Y-m-d"));
// $begin_time = strtotime(date("Y-m-d", strtotime("-1 week", $end_time)));
// 上周
$data_first = DB::table('muapi_user_log')
->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
->whereTime('create_time', 'between', [$lastmonday_begin_time, $lastmonday_end_time])
// ->whereWeek('create_time', $monday)
->group("date")
->order('date', 'asc')
->select()
->toArray();
// 本周
$data_second = DB::table('muapi_user_log')
->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
->whereTime('create_time', 'between', [$monday_begin_time, $monday_end_time])
// ->whereWeek('create_time', $monday)
->group("date")
->order('date', 'asc')
->select()
->toArray();
// 补全日期
$ArrayData = addArrayData($lastmonday_begin_time, $data_first);
if($data_second) {
$mondayArrayData = addArrayData($monday_begin_time, $data_second);
// 集合点击量
foreach($mondayArrayData as $k=>$v){
$date1[] = explode(',',$v['date']);
}
foreach($date1 as $k=>$v){
$index = array_search($v,$date1);
$nums1[$index] = $mondayArrayData[$index]['count'];
}
// $mondayArrayData = 666;
} else {
$mondayArrayData = array_map(function ($time) {
return date("Y-m-d", $time);
}, range($monday_begin_time, $monday_end_time, 24 * 3600));
$nums1 = array_fill(0, count($mondayArrayData), 0);
}
$monday_begin = $monday; // 本周星期一
$monday_end = date("Y-m-d", strtotime("$monday +6 day")); //上一周结束
// initData
// $end_time = strtotime(date("Y-m-d"));
// $begin_time = strtotime(date("Y-m-d", strtotime("-1 week +1 day", $end_time)));
$keys = array_map(function ($time) {
return date("Y-m-d", $time);
}, range($monday_begin_time, $monday_end_time, 24 * 3600));
$initData = array_combine($keys, array_fill(0, count($keys), 0));
$daysnums = array_fill(0, count($keys), 0);
array_walk($data_second, function ($value, $key) use ($keys, &$daysnums) {
$index = array_search($value['date'],$keys);
$daysnums[$index] = $value['count'];
});
$data3 = [
'date' => $keys,
'count' => $daysnums
];
// 集合点击量
foreach($ArrayData as $k=>$v){
$date[] = explode(',',$v['date']);
}
foreach($date as $k=>$v){
$index = array_search($v,$date);
$nums[$index] = $ArrayData[$index]['count'];
}
return to_assign(0, '', [
'data' => $data_first,
'ArrayData' => $ArrayData,
'nums' => $nums,
'mondayArrayData' => $mondayArrayData,
'nums1' => $nums1,
'data_second' => $data_second,
'monday_begin_time' => $monday_begin_time,
'monday_end_time' => $monday_end_time,
'monday_begin' => $monday_begin,
'monday_end' => $monday_end,
'date' => $keys,
'data3' => $data3,
'lastmonday_begin_time' => $lastmonday_begin_time,
'lastmonday_end_time' => $lastmonday_end_time,
]);
}
public function getW7() {
$three_end_time = strtotime('2022-06-28');
$three_time = '2022-06-28';
$three_begin_time = strtotime(date("Y-m-d", strtotime("$three_time +6 day")));
$keys3 = array_map(function ($time) {
return date("Y-m-d", $time);
}, range($three_begin_time, $three_end_time, 24 * 3600));
$count3 = array_fill(0, count($keys3), 0);
return to_assign(0, '', [
// 'data' => $data,
// 'data_first' => $initData,
// 'data_second' => $initData2,
// 'initData' => $initData,
// 'date' => $keys,
// 'count' => $count,
// 'last_time' => $last_time,
// 'last_begin_time' => $last_begin_time,
// 'date2' => $keys2,
// 'this_week' => $data,
// 'last_week' => $data2,
// 'data_three'=> $data3,
'three_begin_time' => $three_begin_time,
'data_three'=> $keys3,
'count3' => $count3,
// // 'data_first' => day_document($data_first),
// // 'data_second' => date_document($data_second),
// // 'data_three'=>date_document($data_three)
]);
}
```
```
// public function getWeekok() {
// // 本周
// $monday = mondayTime(time() + 24 * 3600 * 2, false); // 本周星期一
// $monday_begin_time = strtotime("$monday"); // 本周星期一
// // $lastmonday = date("Y-m-d", strtotime("$monday -7 day")); // 上周星期一
// $monday_end_time = strtotime(date("Y-m-d", strtotime("$monday +6 day"))); //上一周结束
// $data_second = DB::table('muapi_user_log')
// ->field('FROM_UNIXTIME(create_time,"%Y-%m-%d") as date,count(create_time) as count')
// ->whereTime('create_time', 'between', [$monday_begin_time, $monday_end_time])
// // ->whereWeek('create_time', $monday)
// ->group("date")
// ->order('date', 'asc')
// ->select()
// ->toArray();
// $keys = array_map(function ($time) {
// return date("Y-m-d", $time);
// }, range($monday_begin_time, $monday_end_time, 24 * 3600));
// $daysnums = array_fill(0, count($keys), 0);
// array_walk($data_second, function ($value, $key) use ($keys, &$daysnums) {
// $index = array_search($value['date'],$keys);
// $daysnums[$index] = $value['count'];
// });
// $data = [
// 'all' => array_combine($keys, $daysnums),
// 'date' => $keys,
// 'count' => $daysnums
// ];
// return to_assign(0, '', [
// 'data' => $data,
// 'date' => $keys,
// 'nums' => $daysnums,
// ]);
// }
```
```
// 雷达数据
public function getRadar1() {
$browser = Db::name('radar')
->field('browser')->select();
// 数组转字符串
foreach ($browser as $k=>$v){
$browserarr[$k] = implode($v);
}
// return result($browserarr, '获取成功!', 200);
// 字符串去重
// $newbrowser=array_unique($browserarr);
$newbrowser=array_flip($browserarr);
$newbrowser = array_keys($newbrowser);
// return result($newbrowser, '获取成功!', 200);
// avg平均值 num总分 count统计数量
foreach ($newbrowser as $k=>$v){
$inbrowserarr[$k]['name'] = $v;
$inbrowserarr[$k]['value'] = Db::name('radar')
->where('browser',$v)
->sum('num');
}
// return result($inbrowserarr, '获取成功!', 200);
return to_assign(0, '', ['browser' => $newbrowser, 'num' => $inbrowserarr]);
}
// ---------------------------------------------------------------------
//获取备注信息
public function _get_field() {
$model = new \Think\Model();
$controller_name = $this->CamelCaseToUnderScore(CONTROLLER_NAME);
$rs = $model->query("select `column_name`,`column_comment` from information_schema.COLUMNS WHERE TABLE_SCHEMA = '".C('DB_NAME')."' AND TABLE_NAME = '".C('DB_PREFIX').$controller_name."'");
return $rs;
}
//驼峰命名转下划线命名
public function CamelCaseToUnderScore($str){
$dstr = preg_replace_callback('/([A-Z]+)/',function($matchs){
return '_'.strtolower($matchs[0]);
},$str);
return trim(preg_replace('/_{2,}/','_',$dstr),'_');
}
```
- 空白目录
- thinkcmf的权限管理
- thinkcmf+unicmf添加页面
- Thinkphp5做后台 Uni-app做前台解决跨域问题
- 组件
- h5跨域-uniapp
- thinkphp5 auth 教程
- thinkphp5Auth类
- uniapp添加与编辑的差别
- 常见的请求方式
- uni 单选回显数据_uniapp 页面跳转传值和接收
- uni-app 单选/多选/滑动 demo
- 关于uniapp checkbox多选框如何传值传数据
- uniApp 多选框checkbox ,判断是否选中
- uniapp添加复选框和获取复选框的值
- uni-app中全选多选单选
- uniapp多选框CheckBox 数据接收
- uniapp下拉列表单选框复选框实战demo(编辑或详情页)
- uni-data-CheckBox-OK
- js 字符串数组转换成数字数组
- js把字符串转为数组对象
- js中数组对象字符串的相互转换
- JS怎么把字符串数组转换成整型数组
- 小程序开发
- tp5.1跨域请求
- uniapp-h5跨域
- 新增
- order
- uni-app中调取接口的三种方式与封装uni.request()
- uView-checkbox
- 给u-view的u-select赋值
- uView-下拉框、复选框、单选框 数据发送及接收
- CURD操作
- thinkphp5.1增删改查
- TP5.1添加数据成功之后返回自增主键id
- Thinkphp实战之Request默认值except only 以及过滤参
- uni-app跨域解决方案
- thinkphp5.1+uni-app接口开发中跨域问题解决方案
- tp6 + uniapp 前后端跨域解决方案
- uniapp-token相关
- uniapp request请求封装包含token兼容多端,简单易用
- CORS.php
- ThinkPHP6 API开发前后端分离用户信息保存在后端的方法
- thinkphp的jwt(JSON Web Token)身份验证
- thinkphp6增删改查
- PHP模拟GET,POST请求
- php模拟get、post发送请求的6种方法
- thinkphp6
- uniapp封装网络请求
- thinkphp6搭建后端api接口jwt-auth
- uniapp实现APP微信登录流程
- [uni-app] 中保持用户登录状态
- 详解vue中localStorage的使用方法
- vue 实现通过vuex 存储值 在不同界面使用
- dispatch:异步操作,数据提交至 actions ,可用于向后台提交数据
- ThinkPHP6.0 + Vue + ElementUI + axios 的环境安装到实现 CURD 操作
- tp6错误集
- TP6 模型插入/添加数据,自动插入时间(自动时间戳)
- 手机不开机维修思路
- thinkphp6解决vue跨域问题
- 从0基础获取短视频去水印解析接口制作
- thinkphp5 删除缓存
- thinkPHP,怎么把json文件里面的数据导入数据库
- 数字转字符php
- php – 直接用curl下载远程文件
- thinkphp – 直接用curl下载远程文件
- apiAdmin安装
- echart
- thinkphp开发小程序推广分享带参数二维码生成
- php同比增加函数
- PHP获取同比上周、上一个月,上一个季度,去年时间区间
- “前3秒”金句100例,赶紧收藏起来!
- PHP配合微信公众号生成推广二维码
- thinkphp5+php微信公众号二维码扫码关注推广二维码事件实现
- 获取当前时间上一周的开始时间和结束时间
- TP6 查找指定工作日
- PHP 获取当天、近一周、本周、上月、本月、本季度、上季度时间方法大全
- php获取今日、昨日、本周、本月 日期方法
- Tp5+mysql按年季度月周日小时查询时无数据的时间段补0方法
- mysql按天统计的时候,该天没有数据也要统计为0
- 列出一星期的日期 无数据补0
- thinkphp6本周 上周 周一 周末日期
- 补全日期 无数据补0
- php+pv统计代码实现,Laravel 10 行代码实现简单的网站 pv uv 统计
- 通过API获取ip地址以及城市和运营商
- 获取访客信息
- 13行代码实现微信小程序设置概率触发激励视频阅读文章
- uniapp 微信小程序 获取场景值和场景值个性化参数
- 微信小程序分享小程序码的生成(带参数)以及参数的获取
- 小程序推广分享带参数二维码生成
- uniapp微信小程序生成对应页面二维码
- uniapp获取当前页面url
- uniapp微信小程序--微信登录
- 微信小程序,生成小程序码中scene参数的存放和获取问题
- uni-app 微信小程序生成二维码带参数
- uni-app 微信小程序如何把图片保存到本地相册?
- thinkPHP5使用assign()传递富文本,前端解析成HTML标签
- tp6解析编辑器里面的html标签原样输出
- PHP判断url链接是否被百度收录
- 微擎安装模块时提示 Failed to connect to we7.rewlkj.com port 80: Timed out
- 小程序码生成
- thinkphp开发小程序推广分享带参数二维码生成0
- tp3.2伪静态
- apiadmin安装教程-2022.8更新
- autojs事件代码
- uuuu
- thinkphp6: API 多版本控制