123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace app\api\controller;
- use AlibabaCloud\Client\AlibabaCloud;
- use AlibabaCloud\Client\Exception\ClientException;
- use AlibabaCloud\Client\Exception\ServerException;
- use think\Db;
- /**
- * @title 定时任务
- * Class Timedtask
- * @controller Timedtask
- * @group base
- */
- class Timedtask
- {
- /**
- * @title 会员优惠券过期
- * @desc 会员优惠券过期
- * @author qc
- * @url /api/Timedtask/userCouponOver
- * @method GET
- */
- public function userCouponOver()
- {
- Db::table('user_coupon_list')
- ->where('past_at','> time',date('Y-m-d H:i:s'))
- ->where('status','=',1)
- ->update(['status'=>3]);
- }
- }
|