|
@@ -66,6 +66,16 @@ class Notify extends Api
|
|
|
$userInfo->save();
|
|
|
$userService = new UserService();
|
|
|
$userService->inviteMoney(['user_id'=>$orderInfo["user_id"]]);
|
|
|
+ // +EXP 充值任意金额
|
|
|
+ \app\common\model\TaskLog::tofinish($orderInfo["user_id"], "5EMwg7la", 1);
|
|
|
+
|
|
|
+ // 查询今日充值记录
|
|
|
+ $today = strtotime(date("Y-m-d 00:00:00"));
|
|
|
+ $rechargeMoney = \app\common\model\RecharOrder::where(["user_id" => $orderInfo["user_id"], "createtime" => ["gt", $today]])->sum("money");
|
|
|
+ if ($rechargeMoney >= 100) {
|
|
|
+ // +EXP 充值超过100
|
|
|
+ \app\common\model\TaskLog::tofinish($orderInfo["user_id"], "DaCVgOLu", 1);
|
|
|
+ }
|
|
|
Db::commit();
|
|
|
}
|
|
|
} catch (ValidateException $e) {
|
|
@@ -164,6 +174,16 @@ class Notify extends Api
|
|
|
$userInfo->save();
|
|
|
$userService = new UserService();
|
|
|
$userService->inviteMoney(['user_id'=>$orderInfo["user_id"]]);
|
|
|
+ // +EXP 充值任意金额
|
|
|
+ \app\common\model\TaskLog::tofinish($orderInfo["user_id"], "5EMwg7la", 1);
|
|
|
+
|
|
|
+ // 查询今日充值记录
|
|
|
+ $today = strtotime(date("Y-m-d 00:00:00"));
|
|
|
+ $rechargeMoney = \app\common\model\RecharOrder::where(["user_id" => $orderInfo["user_id"], "createtime" => ["gt", $today]])->sum("money");
|
|
|
+ if ($rechargeMoney >= 100) {
|
|
|
+ // +EXP 充值超过100
|
|
|
+ \app\common\model\TaskLog::tofinish($orderInfo["user_id"], "DaCVgOLu", 1);
|
|
|
+ }
|
|
|
Db::commit();
|
|
|
}
|
|
|
} catch (ValidateException $e) {
|