|
|
@@ -39,7 +39,7 @@ class CouponClass extends BaseClass
|
|
|
$invite->save();
|
|
|
//下单人数+1
|
|
|
$introUserId = $invite->introUserId;
|
|
|
- $introStat = InviteStatClass::getByCondition(['userId' => $introUserId]);
|
|
|
+ $introStat = InviteStatClass::getByCondition(['userId' => $introUserId], true);
|
|
|
if (!empty($introStat)) {
|
|
|
$introStat->orderNum += 1;
|
|
|
$introStat->save();
|
|
|
@@ -47,7 +47,7 @@ class CouponClass extends BaseClass
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//增加优惠券 shish 2020.5.5
|
|
|
public static function add($data, $returnObject = false)
|
|
|
{
|