debug: 添加调试日志
This commit is contained in:
@@ -40,11 +40,15 @@ class FeishuNotificationService
|
|||||||
*/
|
*/
|
||||||
public function setAppByUser(int $userId): self
|
public function setAppByUser(int $userId): self
|
||||||
{
|
{
|
||||||
|
error_log("🔧 setAppByUser 被调用: userId={$userId}");
|
||||||
|
|
||||||
$user = \app\model\User::find($userId);
|
$user = \app\model\User::find($userId);
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
throw new Exception('用户不存在');
|
throw new Exception('用户不存在');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error_log("🔧 setAppByUser: 找到用户, company_id={$user->company_id}, feishu_app_id={$user->feishu_app_id}");
|
||||||
|
|
||||||
$this->setCompany($user->company_id);
|
$this->setCompany($user->company_id);
|
||||||
|
|
||||||
// 使用用户最后登录的应用
|
// 使用用户最后登录的应用
|
||||||
@@ -681,6 +685,8 @@ class FeishuNotificationService
|
|||||||
*/
|
*/
|
||||||
public function updateActorMessageCard(int $orderId, int $nodeId, int $actorUserId, string $status): bool
|
public function updateActorMessageCard(int $orderId, int $nodeId, int $actorUserId, string $status): bool
|
||||||
{
|
{
|
||||||
|
error_log("🔧 updateActorMessageCard 被调用: order_id={$orderId}, node_id={$nodeId}, actorUserId={$actorUserId}, status={$status}");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 获取该操作人的消息
|
// 获取该操作人的消息
|
||||||
$message = \app\model\FeishuMessage::where('order_id', $orderId)
|
$message = \app\model\FeishuMessage::where('order_id', $orderId)
|
||||||
|
|||||||
Reference in New Issue
Block a user