|
@@ -2,6 +2,7 @@
|
|
|
namespace app\api\controller;
|
|
|
use app\common\model\PartnerLevel;
|
|
|
use app\common\model\User;
|
|
|
+use app\common\model\UserCouponList;
|
|
|
use app\common\model\UserExpLog;
|
|
|
use app\common\model\UserGrowthLog;
|
|
|
use app\common\model\UserIntegralLog;
|
|
@@ -18,6 +19,7 @@ use app\common\service\UserIdentity;
|
|
|
*/
|
|
|
class Task extends Base
|
|
|
{
|
|
|
+
|
|
|
public function checkUserLevel()
|
|
|
{
|
|
|
$user_level = UserLevel::column('id,name,growth','id');
|
|
@@ -72,4 +74,10 @@ class Task extends Base
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+ public function couponOverTime()
|
|
|
+ {
|
|
|
+ UserCouponList::where([['type','=',1],['end','> time',date('Y-m-d')],['status','=',0]])->update(['status'=>2]);
|
|
|
+ }
|
|
|
+
|
|
|
}
|