From ead89a5db3faf638db49556cfe96fe05d94dae58 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Tue, 11 Nov 2025 18:02:49 +0800
Subject: [PATCH] 名片联盟币支付
---
admin/app/api/controller/branch/ActivityUser.php | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/admin/app/api/controller/branch/ActivityUser.php b/admin/app/api/controller/branch/ActivityUser.php
index 83e2062..1bdac1d 100644
--- a/admin/app/api/controller/branch/ActivityUser.php
+++ b/admin/app/api/controller/branch/ActivityUser.php
@@ -56,9 +56,16 @@
{
$model = new ActivityUserModel;
$user = $this->getUser();
- if ($model->onVerify($user, $activity_id)) {
+ if ($model->onVerify($user, $activity_id, $this->postData())) {
return $this->renderSuccess('签到成功');
}
- return $this->renderError($model->getError() ?:'签到失败');
+ // 如果判断到没有报名。需要处理朋友帮报的情况
+ $error = $model->getError();
+ if ($error && $error == 'not_reg') {
+ return $this->renderSuccess('', [
+ 'result' => 'not_reg'
+ ]);
+ }
+ return $this->renderError($error ?:'签到失败');
}
}
\ No newline at end of file
--
Gitblit v1.9.2