feat(UserSignLogic): 修改用户签到逻辑,增加用户充值查询
This commit is contained in:
parent
380e121726
commit
f9114271ec
@ -5,6 +5,7 @@ namespace app\common\logic;
|
|||||||
|
|
||||||
use app\common\logic\BaseLogic;
|
use app\common\logic\BaseLogic;
|
||||||
use app\common\model\user\User;
|
use app\common\model\user\User;
|
||||||
|
use app\common\model\user_recharge\UserRecharge;
|
||||||
use app\common\model\user_sign\UserSign;
|
use app\common\model\user_sign\UserSign;
|
||||||
use app\common\model\user_sign_log\UserSignLog;
|
use app\common\model\user_sign_log\UserSignLog;
|
||||||
|
|
||||||
@ -40,7 +41,7 @@ class UserSignLogic extends BaseLogic
|
|||||||
if($total_vip==0){
|
if($total_vip==0){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$count = UserSign::where('uid', $order->uid)->count();
|
$count = UserRecharge::where('uid', $order->uid)->count();
|
||||||
if ($count == 0 && in_array($user_ship, [1, 2, 3, 5, 6, 7, 8])) {
|
if ($count == 0 && in_array($user_ship, [1, 2, 3, 5, 6, 7, 8])) {
|
||||||
//首充
|
//首充
|
||||||
$write = self::write($order, $total_vip, 0, 1, 9);
|
$write = self::write($order, $total_vip, 0, 1, 9);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user