Merge branch 'dev' of 47.111.118.107:/srv/git/sdk into dev

master
chenzhi 5 years ago
commit 8990b6ad3e

@ -51,7 +51,19 @@
<script> <script>
$(function() { $(function() {
$(".copybtn").click(function() { $(".copybtn").click(function() {
window.txyxsdk.getCopy("{$novice}"); var u = navigator.userAgent, app = navigator.appVersion;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isAndroid) {
window.txyxsdk.getCopy("{$novice}");
}
if (isIOS) {
try{
location.href = '?action=copy&copycontent={$novice}'
}catch(err){
}
}
}); });
}); });
/* /*

Loading…
Cancel
Save