
{
"name": "Exception",
"message": "Calling unknown method: yii2tech\\ar\\softdelete\\SoftDeleteBehavior::isTransactional()",
"code": 0,
"type": "yii\\base\\UnknownMethodException",
"file": "E:\\wwwroot\\channel-pub-api\\vendor\\yiisoft\\yii2\\base\\BaseObject.php",
"line": 222,
"stack-trace": [
"#0 [internal function]: yii\\base\\BaseObject->__call('isTransactional', Array)",
"#1 E:\\wwwroot\\channel-pub-api\\vendor\\yiisoft\\yii2\\base\\Component.php(297): call_user_func_array(Array, Array)",
"#2 E:\\wwwroot\\channel-pub-api\\vendor\\yii2tech\\ar-softdelete\\src\\SoftDeleteBehavior.php(447): yii\\base\\Component->__call('isTransactional', Array)",
"#3 E:\\wwwroot\\channel-pub-api\\vendor\\yii2tech\\ar-softdelete\\src\\SoftDeleteBehavior.php(193): yii2tech\\ar\\softdelete\\SoftDeleteBehavior->isTransactional(4)",
"#4 [internal function]: yii2tech\\ar\\softdelete\\SoftDeleteBehavior->softDelete()",
"#5 E:\\wwwroot\\channel-pub-api\\vendor\\yiisoft\\yii2\\base\\Component.php(297): call_user_func_array(Array, Array)",
"#6 E:\\wwwroot\\channel-pub-api\\common\\services\\NeteaseTpAppUserAccessTokenService.php(295): yii\\base\\Component->__call('softDelete', Array)",
"#7 E:\\wwwroot\\channel-pub-api\\netease\\services\\NeteaseTpAppUserAccessTokenService.php(49): common\\services\\NeteaseTpAppUserAccessTokenService->softDelete(Object(netease\\models\\redis\\NeteaseTpAppUserAccessToken))",
"#8 E:\\wwwroot\\channel-pub-api\\netease\\services\\NeteaseTpAppService.php(75): netease\\services\\NeteaseTpAppUserAccessTokenService->softDeleteByNeteaseTpAppUserId(2)",
"#9 E:\\wwwroot\\channel-pub-api\\netease\\rests\\netease_tp_app_user\\DeleteAction.php(83): netease\\services\\NeteaseTpAppService->userSoftDelete(Object(common\\logics\\ChannelAppSource), Object(netease\\modules\\v1\\models\\NeteaseTpAppUser))",
"#10 [internal function]: netease\\rests\\netease_tp_app_user\\DeleteAction->run('bc57d168bd9a11e...')",
"#11 E:\\wwwroot\\channel-pub-api\\vendor\\yiisoft\\yii2\\base\\Action.php(94): call_user_func_array(Array, Array)",
"#12 E:\\wwwroot\\channel-pub-api\\vendor\\yiisoft\\yii2\\base\\Controller.php(157): yii\\base\\Action->runWithParams(Array)",
"#13 E:\\wwwroot\\channel-pub-api\\vendor\\yiisoft\\yii2\\base\\Module.php(528): yii\\base\\Controller->runAction('delete', Array)",
"#14 E:\\wwwroot\\channel-pub-api\\vendor\\yiisoft\\yii2\\web\\Application.php(103): yii\\base\\Module->runAction('v1/netease-tp-a...', Array)",
"#15 E:\\wwwroot\\channel-pub-api\\vendor\\yiisoft\\yii2\\base\\Application.php(386): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))",
"#16 E:\\wwwroot\\channel-pub-api\\netease\\web\\index.php(17): yii\\base\\Application->run()",
"#17 {main}"
]
}
/* 基于网易号的第三方内容平台应用的用户ID查找单个资源 */
$model = RedisNeteaseTpAppUserAccessToken::findOneByNeteaseTpAppUserId($neteaseTpAppUserId);
if ($model->softDelete() !== false) {
return ['status' => true, 'data' => $model];
} else {
throw new ServerErrorHttpException('Failed to soft delete the object (access token (Redis) for users of third-party content platform applications of Netease) for unknown reason.');
}
/* 基于网易号的第三方内容平台应用的用户ID查找单个资源 */
$model = RedisNeteaseTpAppUserAccessToken::findOneByNeteaseTpAppUserId($neteaseTpAppUserId);
if ($model->delete() !== false) {
return ['status' => true, 'data' => $model];
} else {
throw new ServerErrorHttpException('Failed to delete the object (access token (Redis) for users of third-party content platform applications of Netease) for unknown reason.');
}
PHP / Laravel / Yii2 老项目维护与长期技术支持
如果你的 PHP / Laravel / Yii2 项目已经上线,但遇到原开发离职、Bug 长期无人修复、接口不稳定、性能下降、代码难以接手等问题,可以联系我做一次远程技术排查。
适合以下情况:
✅ 老旧 PHP 系统无人维护
✅ Laravel / Yii2 项目 Bug 修复
✅ 后台管理系统小功能迭代
✅ RESTful API 接口排查
✅ MySQL / Redis / Nginx 性能问题
✅ 长期远程兼职维护
可先从一次小问题开始:
✅ 线上报错排查
✅ 接口异常分析
✅ 慢查询与性能瓶颈定位
✅ 代码结构初步评估
✅ 部署环境与日志检查
如需咨询,请联系我,并注明:PHP 维护咨询。
联系方式:
Telegram:@shuijingwan
微信:13980074657
邮箱:shuijingwanwq@gmail.com

发表回复