From 91a20603503d74c40f6e35e3c176d5479712c6f9 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Wed, 7 Jun 2023 16:34:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E9=97=AE=E9=A2=98=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activity/combination/StorePinkServices.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crmeb/app/services/activity/combination/StorePinkServices.php b/crmeb/app/services/activity/combination/StorePinkServices.php index f17b9193f..9715a4f06 100644 --- a/crmeb/app/services/activity/combination/StorePinkServices.php +++ b/crmeb/app/services/activity/combination/StorePinkServices.php @@ -97,7 +97,7 @@ class StorePinkServices extends BaseServices */ public function getPinkMember(int $id) { - return $this->dao->getList(['k_id' => $id, 'is_refund' => 0]); + return $this->dao->getList(['k_id' => $id]); } /** @@ -130,15 +130,15 @@ class StorePinkServices extends BaseServices $res11 = $this->dao->update($id, ['k_id' => $kCount['id']], 'k_id'); $res12 = $this->dao->update($kCount['id'], ['stop_time' => $count['add_time'] + 86400, 'k_id' => 0]); $res1 = $res11 && $res12; - $res2 = $this->dao->update($id, ['stop_time' => time() - 1, 'k_id' => 0, 'is_refund' => $kCount['id'], 'status' => 3]); + $res2 = $this->dao->update($id, ['stop_time' => time() - 1, 'k_id' => $kCount['id'], 'is_refund' => $kCount['id'], 'status' => 3]); } else { $res1 = true; - $res2 = $this->dao->update($id, ['stop_time' => time() - 1, 'k_id' => 0, 'is_refund' => $id, 'status' => 3]); + $res2 = $this->dao->update($id, ['stop_time' => time() - 1, 'is_refund' => $id, 'status' => 3]); } //修改结束时间为前一秒 团长ID为0 $res = $res1 && $res2; } else if ($countY) {//团员 - $res = $this->dao->update($countY['id'], ['stop_time' => time() - 1, 'k_id' => 0, 'is_refund' => $id, 'status' => 3]); + $res = $this->dao->update($countY['id'], ['stop_time' => time() - 1, 'is_refund' => $id, 'status' => 3]); } return $res; } @@ -221,10 +221,10 @@ class StorePinkServices extends BaseServices { //查找拼团团员和团长 if ($pink['k_id']) { - $pinkAll = $this->dao->getPinkUserList(['k_id' => $pink['k_id'], 'is_refund' => 0]); + $pinkAll = $this->dao->getPinkUserList(['k_id' => $pink['k_id']]); $pinkT = $this->dao->getPinkUserOne($pink['k_id']); } else { - $pinkAll = $this->dao->getPinkUserList(['k_id' => $pink['id'], 'is_refund' => 0]); + $pinkAll = $this->dao->getPinkUserList(['k_id' => $pink['id']]); $pinkT = $pink; } $count = count($pinkAll) + 1;