摘要: //本周时间 $now_start_time =mktime(0,0,0,date('m'),date('d')-date('w')+1,date('Y')); $now_end_time =mktime(0,0,0,date('m'),date('d')-date('w')+1+7,date('Y 阅读全文
posted @ 2022-10-10 14:54 浪、子 阅读(36) 评论(0) 推荐(0) 编辑
摘要: //生成临时路径 public function getTmpPathByContent($content) { static $tmpFile = null; $tmpFile = tmpfile(); fwrite($tmpFile, $content); $tempPemPath = stre 阅读全文
posted @ 2022-09-30 10:21 浪、子 阅读(18) 评论(0) 推荐(0) 编辑
摘要: public function curlUpload($url = '', $postData = '') { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); $cfile = curl_file_create($postData['t 阅读全文
posted @ 2022-04-09 11:26 浪、子 阅读(330) 评论(0) 推荐(0) 编辑
摘要: wps接口对接地址:https://open.wps.cn/docs/signature/wps-3 <?php function http_post($url,$param,$header){ $oCurl = curl_init(); if(stripos($url,"https://")!== 阅读全文
posted @ 2022-03-30 09:35 浪、子 阅读(477) 评论(1) 推荐(0) 编辑
摘要: 注意:本次测试用的thinkphp6做的测试,勿喷!!! public function index() { $t1 = microtime(true); $content = [ '2021年07月出生,家在河北', '2021年07月出生,家在河北', '2021年07月出生,家在陕西,幼时与张 阅读全文
posted @ 2021-12-18 17:58 浪、子 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 组装查询条件条件 注意这里store_ids是数组格式 if(isset($params['store_ids'])&&!empty($params['store_ids'])) { $store_ids=$params['store_ids']; $sql_where=''; foreach($s 阅读全文
posted @ 2021-12-17 17:31 浪、子 阅读(1556) 评论(0) 推荐(0) 编辑
摘要: function getParents($id, $list,$parents = []) { //改变数组的key值 $list = array_column($list, NULL, 'id'); // echo "<pre>"; print_r($list);die; //改变后的数组 // 阅读全文
posted @ 2021-12-17 16:02 浪、子 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 一、数组 $categories = array( array('id'=>1,'name'=>'陕西','parent_id'=>0), array('id'=>2,'name'=>'西安','parent_id'=>1), array('id'=>3,'name'=>'长安区','parent_ 阅读全文
posted @ 2021-12-17 10:39 浪、子 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 一、数组 $categories = array( array('id'=>1,'name'=>'陕西','parent_id'=>0), array('id'=>2,'name'=>'西安','parent_id'=>1), array('id'=>3,'name'=>'长安区','parent_ 阅读全文
posted @ 2021-12-17 10:17 浪、子 阅读(284) 评论(0) 推荐(0) 编辑
摘要: $ admin_id=Session::get('admin.id');//登陆id $group_id=Session::get('admin.group_id');//角色id 角色为1 可以看到所有的 // print_r($admin_id); // print_r('-----------------'); // ... 阅读全文
posted @ 2019-07-06 13:47 浪、子 阅读(402) 评论(0) 推荐(0) 编辑