- 博客(10)
- 收藏
- 关注
原创 php 导入excel 并且创建temp表,修改原表字段名
<?phpnamespace app\api\controller\revit;use app\api\controller\Common;use app\admin\model\revit\Field;use app\admin\model\revit\Revit as RevitModel;use think\Db;use think\Exception;class Revit extends Common{ protected $noNeedLogin = '*'.
2022-05-16 10:15:23
137
原创 关于curl的部分
$curl = curl_init(); $fileId = input('fileId'); $accesstoken = $this->getAccessToken(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.bimface.com/translate?fileId='.$fileId, CURLO...
2021-10-21 13:44:37
696
原创 PHP按照数组中的某个字段排序
当我们需要依靠数组中的某个字段进行排序时候,可以使用以下方法进行排序:以下图为例,需要用到num_count 进行排序。方法一:$num_count = array_column($data,'num_count');//返回数组中指定的一列array_multisort($num_count,SORT_DESC,$data);//对多个数组或多维数组进行排序先取出其中要排序的那列,然后进行排序即可...
2021-09-08 13:51:27
3153
2
原创 php自动发短信失败:使用cmd查看错误代码
错误代码:Cannot modify header information解决方法:用Dreamweaver打开这个php页面,然后进入页面设置取消选择“包括Unicode签名(BOM)”,确定就可以了。
2021-08-17 09:59:44
154
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人