接口说明:
是否手机客户端请求
接口源代码PHP:
<?php
/**
* 判断是否手机请求 PHP接口源代码
*
* 最后修改:2024-10-12 12:17:02
*
* @author dogstar www.yesapi.cn
*
* 来源:https://open.yesapi.cn/apicode/2403.html
*/
function ($params, $di) {
$result = array('err_code' => 0, 'err_msg' => '');
// TODO:在这里编写你的具体业务
$result['isMobile'] = \App\Common\YesApiIsMobile();
return $result; // 返回接口结果
}
在线运行
