error 回收站

项目开发中遇到的各种各种的异常和错误收集
一、
[SQL]INSERT INTO change_point_code (id, shop_id, delflag, user_id, source, code, value, describle, create_account, create_time, update_account, update_time)
VALUES (‘2’, ‘11’, ‘0’, ‘11’, ‘sy’, ‘10222149170302’, ‘1’, ‘扫码赠送积分’, ‘11’, ‘1465200929’, ‘11’, ‘1465200929’)

[Err] 1062 - Duplicate entry ‘10222149170302’ for key ‘unique_code’

二、
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘id1’ in ‘where clause’ (SQL: update activity set delflag = 0 where id1 = 358 and delflag = 0) {“message”:”SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘id1’ in ‘where clause’ (SQL: update activity set delflag = 0 where id1 = 358 and delflag = 0)”,”file”:”SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘id1’ in ‘where clause’ (SQL: update activity set delflag = 0 where id1 = 358 and delflag = 0)”,”line”:631,”code”:”42S22”,”url”:”http://192.168.10.89:900/xxx“,”input”:[]}

三、
local.ERROR: {“message”:”“,”file”:”“,”line”:53,”code”:0,”url”:”http://192.168.10.89:900/xxx“,”input”:[]}

四、
SQLSTATE[HY000] [1045] Access denied for user ‘root’@’human-PC’ (using password: YES) {“message”:”SQLSTATE[HY000] [1045] Access denied for user ‘root’@’human-PC’ (using password: YES)”,”file”:”SQLSTATE[HY000] [1045] Access denied for user ‘root’@’human-PC’ (using password: YES)”,”line”:50,”code”:1045,”url”:”http://localhost“,”input”:[]}

五、
Undefined offset: 0 {“message”:”Undefined offset: 0”,”file”:”Undefined offset: 0”,”line”:45,”code”:0,”url”:”http://192.168.10.89:900/xxx“,”input”:[]}

六、
Client error: 404

七、
Cannot use object of type Illuminate\Http\JsonResponse as array {“message”:”Cannot use object of type Illuminate\Http\JsonResponse as array”,”file”:”Cannot use object of type Illuminate\Http\JsonResponse as array”,”line”:95,”code”:1,”url”:”http://192.168.10.89:900/xxx“,”input”:{“_token”:”1EKhncHpVD3aUyr7jCedEflbqpV4B54dRxbrq6lW”,”_id”:”1”,”activityName”:”55”}}

八、
syntax error, unexpected ‘)’ {“message”:”syntax error, unexpected ‘)’”,”file”:”syntax error, unexpected ‘)’”,”line”:30,”code”:4,”url”:”http://192.168.10.89:905/xxx“,”input”:[]}

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在操作系统中,文件和文件夹可以被删除并移动到回收站。然而,Node.js本身并没有提供直接将文件或文件夹放入回收站的功能。要实现这一操作,你可以使用Node.js的`fs`模块来删除文件或文件夹,并将其移动到系统的回收站目录。 以下是一个示例代码,演示了如何使用Node.js将文件移动到回收站: ```javascript const fs = require('fs'); const path = require('path'); function moveFileToRecycleBin(filePath) { const recycleBinPath = getRecycleBinPath(); const fileName = path.basename(filePath); const destinationPath = path.join(recycleBinPath, fileName); fs.rename(filePath, destinationPath, (err) => { if (err) { console.error(`Failed to move file to recycle bin: ${err}`); } else { console.log(`File moved to recycle bin: ${destinationPath}`); } }); } function getRecycleBinPath() { // 根据操作系统返回回收站路径 const os = process.platform; switch (os) { case 'win32': return 'C:\\$Recycle.Bin'; case 'darwin': return '~/.Trash'; case 'linux': return '~/.local/share/Trash/files'; default: throw new Error('Unsupported operating system'); } } // 使用示例 moveFileToRecycleBin('/path/to/file.txt'); ``` 请注意,以上代码只是示范如何使用Node.js将文件移动到回收站。实际上,回收站的路径可能因操作系统而异,你可能需要根据具体情况进行调整。另外,由于回收站的实现与操作系统相关,移动文件到回收站可能无法在某些操作系统中正常工作。因此,建议在执行这种操作前进行适当的测试和验证。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值