EvaThumber截取图片失败,尺寸过大解决办法找到/src/EvaThumber/Thumber.php文件,第509加入以下代码:// 防止尺寸过大,图片并没有裁切的尺寸大造成失败 if($crop > $imageWidth || $gravity > $imageHeight){ $min1 = min($crop,$gravity); $min2 = min($imageWidth, $imageHeight); if($min1 <= $min2){ $crop = $gravity = $min1; ...

如何修改EvaThumber适应需要的URLEvaThumber的路径方式为:/thumb/d/image/20181225/1545744945770238,c_200,g_200.jpg期待的路径为:/thumb/d/image/20181225/1545744945770238.jpg?200x200修改办法:Apache Rewrite:#/yueyue/20170425/20170425103814_609844_10002_23252.png?200x200_130 #/thumb/d/image/20181225/1545744945770238,c_200,g_200. ...

首先执行a2enmod rewrite开启rewrite模块,然后编辑文件/etc/apache2/apache2.conf找到<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None #这里改成All即可 Require all granted </Directory>AllowOverride All然后service apache2 restart

区别:substr第2参数是从第1参数后第几位,也就是Length如:s='abcdefg'; s.substr(0,3) // "abc" s.substr(2,3) // "cde"substring第2参数是实际字符串的第几位,但是!substring也是以两个参数中较小一个作为起始位置,较大的参数作为结束位置。如:s.substring(2,3) // "c" s.substring(2,5) // "cde" // 注意:有坑 s.substring(5,2) // "cd ...

注意:在NSTableView中的NSComboBoxCell,每行中的该列是共享的,所以我们只需要对该列数据添加一次数据即可。第一种做法 Interface-Builder直接刚,注意 取消勾选 Uses Data Source第二种做法,使用 Value Selection注意选择Content Viewsself.comboBoxData就是你的AppDelegate中定义的一个属性咯。// 下拉框数据 @property (nonatomic,strong) NSArray* ComboBoxCellData; // 初始化下拉框数据 self.comboBoxCellDa ...

如图所示,复制CURL Request当复制出来的Charles CURL数据不能成功导入PostMan,如下所示这时候查看复制出来的数据:curl -H 'Host: xxx.com' -H 'Accept: application/json' -H 'User-Agent: kwai-ios' -H 'Accept-Language: zh-Hans-CN;q=1' --compressed 'http://xxx.com'问题出现在结尾网址,请将结尾网址提到最前面就可以了。curl 'http://xxx.com' -H 'Host: xxx.com' -H 'Accept: a ...

从Charles导出来的CURL数据,修改后导入PostMan执行并不成功,如图所示:但是直接执行该代码在SHELL却是成功的!问题出现在哪里?检查了发现是代码参数里面的字段被编码了,怎么解决呢?直接打开Chrome,然后用decodeURIComponent(代码)即可,例如decodeURIComponent(`curl 'http://api.gifshow.com/rest/n/feed/hot?appver=5.11.1.750&did_gt=1536039663222&did=C7C4E156-7E68-42E7-A223-EF1DDA20892F& ...