紅包類型-->添加紅包類型。2 修改user.php">
if (register($username, $password, $email, $other) !== false) ??????? {? |
/* 用戶注冊就發(fā)紅包 */ ??????????????? $bonus = $db->getRow('SELECT * FROM ' . $ecs->table("bonus_type") . ' WHERE send_type = 0 And type_id = 1 ', true); ??????????????????????? if($bonus){ ??????????????????????????????? if(time()??????????????????????????????????????? $sql = "INSERT INTO " . $ecs->table('user_bonus') .? ??????????????????????????????????????????????????????????????????????????????? "(bonus_type_id, bonus_sn, user_id, used_time, order_id, emailed) " . ??????????????????????????????????????????????????????????????????????????????? "VALUES ('$bonus[type_id]', 0, '$_SESSION[user_id]', 0, 0, 0)"; ??????????????????????????????????????? $db->query($sql); ??????????????????????????????????????????????? } ??????????????????????????????? } ? |
掃描二維碼分享到微信