Przeglądaj źródła

Wesmiler 校企小程序源代码部署

wesmiler 4 lat temu
rodzic
commit
ec6dce635c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/api/common.php

+ 1 - 1
app/api/common.php

@@ -25,7 +25,7 @@ function getPlatform()
     if (is_debug() && empty($value)) {
     if (is_debug() && empty($value)) {
         $value = request()->param('platform');
         $value = request()->param('platform');
     }
     }
-    return $value;
+    return $value? $value : 'MP-WEIXIN';
 }
 }
 
 
 if (!function_exists('getPreview')) {
 if (!function_exists('getPreview')) {