摘要: GetOrder:https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/getOrder GetOrders:https://developer.ebay.com/api-docs/sell/fulf 阅读全文
posted @ 2021-04-16 19:44 爱家家的卡卡 阅读(184) 评论(0) 推荐(0) 编辑
摘要: $objDrawing = new \PHPExcel_Worksheet_MemoryDrawing(); $value['sku_picture'] = $this->url . $value['sku_picture']; $img_info = getimagesize($value['sk 阅读全文
posted @ 2021-04-16 19:43 爱家家的卡卡 阅读(364) 评论(0) 推荐(0) 编辑
摘要: /** * 两个日期之间的所有日期 * * @param string $start 开始日期 $end 结束日期 * @return array(本月开始时间,本月结束时间) */ function prDates($start, $end) { $dt_start = strtotime($st 阅读全文
posted @ 2021-04-16 19:41 爱家家的卡卡 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 我们经常使用的 Base64 编码用来对字符串或者字节数组进行编码转换,以方便存储。可是Base64 编码的结果可能会带有特殊字符,应用场景有限。 而 Base16 编码生成的结果是用[0-9A-F]十六个字符表示,可以用来生成字符索引和文件名等,应用范围比 Base64 要大的多。 缺点的话 Ba 阅读全文
posted @ 2021-04-16 19:40 爱家家的卡卡 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 直接在文件路径后面+ '?x-oss-process=image/format,jpg'; 阅读全文
posted @ 2021-04-16 19:37 爱家家的卡卡 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 当用PHP导出excel表格的时候,遇到比如说是微信昵称中带标签的,就会导出失败,可以这么转换: $nickname = json_encode($nickname); $nickname_replace = preg_replace("/\\\u[ed][0-9a-f]{3}\\\u[ed][0- 阅读全文
posted @ 2021-04-16 19:36 爱家家的卡卡 阅读(257) 评论(0) 推荐(0) 编辑
摘要: /** * @title 批量下载图片 * @description 批量下载图片 * @author 卡卡 * @method POST */ public function download_batch() { $img_space_ids = input('img_space_ids'); $ 阅读全文
posted @ 2021-04-16 19:35 爱家家的卡卡 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 因为使用的是TP5的框架,所以日常用的方法我都会封装好然后直接调用。 /** * 获取某个条件下的所有数组的指定字段信息 * * @access public * @param mixed $tableName 数据表名 * @param mixed $condition 查询条件 * @param 阅读全文
posted @ 2021-04-16 19:33 爱家家的卡卡 阅读(69) 评论(0) 推荐(0) 编辑
摘要: /** * @title KB转换成MB和GB * @description KB转换成MB和GB * @author 卡卡 */ function switchSize($filesize) { if ($filesize >= 1048576) { $filesize = round($file 阅读全文
posted @ 2021-04-16 19:23 爱家家的卡卡 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 视频存储在阿里云的文件访问地址+?x-oss-process=video/snapshot,t_1000,w_200,h_200,m_fast,f_png 就可以截取视频第一秒的200*200px的格式为png的截图图片,十分方便。 具体各参数的说明如下: 文档链接:视频截帧_数据处理_开发指南_对 阅读全文
posted @ 2021-04-16 16:29 爱家家的卡卡 阅读(686) 评论(0) 推荐(0) 编辑