update waiting req
This commit is contained in:
parent
c175187f4f
commit
aade992cf9
|
@ -61,4 +61,13 @@ class ApiController extends Controller {
|
|||
}
|
||||
}
|
||||
|
||||
public function actionTest() {
|
||||
$ls = \app\models\WaitingReq::find()->limit(10)->all();
|
||||
$c = \app\models\WaitingReq::find()->count();
|
||||
echo "<pre>";
|
||||
var_dump($c, $ls);
|
||||
echo "</pre>";
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ class WaitingReq extends \yii\db\ActiveRecord {
|
|||
|
||||
public function create($data) {
|
||||
$r = $this->load([
|
||||
'content' => $data,
|
||||
'content' => json_encode($data),
|
||||
'time' => time()
|
||||
], '');
|
||||
if ($r) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user