Explorar o código

change context type

stanley-king %!s(int64=9) %!d(string=hai) anos
pai
achega
f6fb362290
Modificáronse 4 ficheiros con 6 adicións e 1 borrados
  1. 0 1
      fcgi_run.php
  2. 2 0
      mobile/alipay_notify_url.php
  3. 2 0
      mobile/dispatch_notify.php
  4. 2 0
      mobile/wxnotify.php

+ 0 - 1
fcgi_run.php

@@ -35,7 +35,6 @@ function run_fcgi()
             if(file_exists($file))
             {
                 if(pays_execute($file)) {
-                    echo("Content-Type: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8; charset=UTF-8\r\n\r\n");
                     include $file;
                 } else {
                     echo("Content-Type: text/html; charset=UTF-8\r\n\r\n");

+ 2 - 0
mobile/alipay_notify_url.php

@@ -15,6 +15,8 @@ $alipayNotify = new AlipayNotify($alipay_config);
 $verify_result = $alipayNotify->verifyReturn();
 Log::record("verify_result={$verify_result}, out_trade_no={$out_trade_no}", Log::DEBUG);
 
+echo("Content-Type: text/html; charset=UTF-8\r\n\r\n");
+
 if ($verify_result) {
 
     $trade_status = $_POST['trade_status'];

+ 2 - 0
mobile/dispatch_notify.php

@@ -6,6 +6,8 @@
  * Time: 上午10:22
  */
 
+echo("Content-Type: text/plain; charset=UTF-8\r\n\r\n");
+
 try
 {
     //tid-订单号,status-1,consign_time-发货时间,logistics_no-快递流水,logistics_company-快递公司

+ 2 - 0
mobile/wxnotify.php

@@ -47,6 +47,8 @@ if(empty($log)) {
 //<transaction_id><![CDATA[1002150763201512142078937308]]></transaction_id>
 //</xml>';
 
+echo("Content-Type: text/html; charset=UTF-8\r\n\r\n");
+
 try
 {
     $content = $_POST['original_querystring'];//request_helper::content();