You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
492 B
PHP
21 lines
492 B
PHP
<?php
|
|
namespace Admin\Controller;
|
|
|
|
use Think\Think;
|
|
|
|
class ShiftTaskController extends Think {
|
|
|
|
public function test()
|
|
{
|
|
$list = M('ShiftTask')->where(['status' => 0])->select();
|
|
$service = new PromoteService();
|
|
|
|
foreach ($list as $task) {
|
|
if ($task['type'] == 1) {
|
|
$result = $this->shiftPromote($task);
|
|
} elseif ($task['type'] == 2) {
|
|
$result = $this->shiftPlayer($task);
|
|
}
|
|
}
|
|
}
|
|
} |