时间:2019-05-05 来源:小程序工厂
牛***:
500返回啥错啊
0***:
PHP Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'include(): Filename cannot be empty' in D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php:166?Stack trace:?#0 D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php(166): think\Error::appError(2, 'include(): File...', 'D:\\wwwroot\\xime...', 166, Array)?#1 D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php(166): think\exception\Handle::convertExceptionToResponse()?#2 D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php(107): think\exception\Handle->convertExceptionToResponse(Object(think\exception\HttpException))?#3 D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php(78): think\exception\Handle->renderHttpException(Object(think\exception\HttpException))?#4 D:\wwwroot\ximeng\thinkphp\library\think\Error.php(48): think\exception\Handle->render(Object(think\exception\HttpException))?#5 [internal function]: think\Error::appException(Object(think\exception\HttpException))?#6 {main}? thrown in D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php on line 166?PHP Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'include(): Filename cannot be empty' in D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php:166?Stack trace:?#0 D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php(166): think\Error::appError(2, 'include(): File...', 'D:\\wwwroot\\xime...', 166, Array)?#1 D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php(166): think\exception\Handle::convertExceptionToResponse()?#2 D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php(80): think\exception\Handle->convertExceptionToResponse(Object(think\exception\ErrorException))?#3 D:\wwwroot\ximeng\thinkphp\library\think\Error.php(48): think\exception\Handle->render(Object(think\exception\ErrorException))?#4 D:\wwwroot\ximeng\thinkphp\library\think\Error.php(81): think\Error::appException(Object(think\exception\ErrorException))?#5 [internal function]: think\Error::appShutdown()?#6 {main}? thrown in D:\wwwroot\ximeng\thinkphp\library\think\exception\Handle.php on line 166
这是报的错,只在苹果机上报错,
遇到iOS端产品因为涉及到推广微信小程序(生成微信小程序码)的功能被拒怎么破?&微信小程序开发教 ...
牛***:
后台接参数了? filename?
牛***:
用苹果手机调一下 调试一下看接没接到
0***:
后台接收我的参数 不做任何处理就返回给我都是报错,
wx.createInnerAudioContext()接口问题
0***:
直接报500 数据都看不到
牛***:
不是你这都没法调试吗,初步判断应该就是参数没接到 你用exit()试试
牛***:
你加个判断如果Filename 是空
exit一下手机上预览文件不跳转
0***:
没有任何效果,还是报刚才的错误
public function single_edit(){
$arr = array('status'=>-1,'msg'=>'修改失败','data'=>'');
if($this->user){
$data = trim_array_element(I('post.'));
$u_single = M('user_single')->where(array('user_id'=>$this->user['user_id']))->find();
if($u_single){
$edit = M('user_single')->where(array('user_id'=>$this->user['user_id']))->update($data);
}else{
$data['user_id'] = $this->user['user_id'];
$edit = M('user_single')->save($data);
}
if($edit){
$arr = array('status'=>1,'msg'=>'修改成功');
}
}
ajaxReturn($arr);
}
0***:
public function single_edit(){
$arr = array('status'=>-1,'msg'=>'修改失败','data'=>'');
if($this->user){
if(isset($from_data) && $form_data!='') {
$data1 = addslashes(fread(fopen($form_data, "rb"), $form_data1));
}else{
exit("文件不存在");
}
$data = trim_array_element(I('post.'));
$u_single = M('user_single')->where(array('user_id'=>$this->user['user_id']))->find();
if($u_single){
$edit = M('user_single')->where(array('user_id'=>$this->user['user_id']))->update($data);
}else{
$data['user_id'] = $this->user['user_id'];
$edit = M('user_single')->save($data);
}
if($edit){
$arr = array('status'=>1,'msg'=>'修改成功');
}