新增调试函数 dumper
This commit is contained in:
@@ -73,7 +73,6 @@ class Api extends Controller
|
||||
header('Access-Control-Max-Age: 1728000');
|
||||
header('Access-Control-Allow-Credentials: true');
|
||||
|
||||
|
||||
// 对OPTIONS请求直接返回
|
||||
if ($this->requestType === 'OPTIONS') {
|
||||
Response::create()->send();
|
||||
|
||||
@@ -141,7 +141,7 @@ class DeviceUser extends Model
|
||||
* @param int $deviceId 设备ID
|
||||
* @return bool 是否删除成功
|
||||
*/
|
||||
public static function removeRelation($companyId, $userId, $deviceId)
|
||||
public static function removeDeviceUserRelation($companyId, $userId, $deviceId)
|
||||
{
|
||||
return self::where([
|
||||
'companyId' => $companyId,
|
||||
|
||||
Reference in New Issue
Block a user