...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
namespace app\api\controller;
|
|
|
|
|
|
use app\api\model\OrderDetail;
|
|
|
use app\api\model\TeamGroup;
|
|
|
use app\api\model\Ticket;
|
|
|
use app\api\model\UserTicket;
|
...
|
...
|
@@ -19,6 +20,19 @@ use think\Config; |
|
|
class Timing extends Api
|
|
|
{
|
|
|
/**
|
|
|
* @ApiTitle (自动收货)
|
|
|
* @ApiSummary (自动收货 每天执行)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiRoute (/api/Timing/automaticReceiving)
|
|
|
* @ApiReturn({
|
|
|
})
|
|
|
*/
|
|
|
public function automaticReceiving(){
|
|
|
$model = new OrderDetail();
|
|
|
$model->where(['status'=>3,'receivingtime'=>['<',time()]])->update(['status'=>4]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (修改用户会员状态)
|
|
|
* @ApiSummary (修改用户会员状态 每天执行)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
|