workerman筆記

頁面定向跳轉
return redirect($back_url);
return new Response(302, ['Location' => $location]);

mysql

$where[] = ['uid', '=', $request->uid];
$where[] = ['is_del', '=', 2];
$where[] = ['os_type', '=', $os_type];
$list = Feedback::getList($where, 'id,content,feedback_imgs,status,c_time,uid', 'id desc', 1, 10);
$info = Feedback::getOne($where);
$data = [
    'uid' => $request->uid,
    'status' => 3,
];
Feedback::create($data);
Feedback::updateDataCache($where, $data);

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章