Commit 634a95b7 authored by yancend's avatar yancend

[test]修改 import.php返回数据类型

parent 1d35b0dd
......@@ -6,8 +6,7 @@
* Time: 上午1:48
* To change this template use File | Settings | File Templates.
*/
header( "Content-type: text/html; charset=utf-8" );
header('Content-Type: text/javascript');
$import = 'import.js';
function custom_strEmpty($s){
$str = strlen(trim($s));
......@@ -19,8 +18,7 @@ function custom_strEmpty($s){
function importSrc(){
require_once 'config.php';
global $import;
require_once 'config.php';
if(file_exists(Config::$projroot.Config::$test_PATH.$import)){
if(file_exists(Config::$projroot.Config::$test_PATH.$import)){
$cnt = file_get_contents(Config::$projroot.Config::$test_PATH.$import);
}
if($cnt == ''){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment