+0°
+0°
2015年02月28日
⁄ ecshop+ectouch
⁄ 共 943字
在include/lib_goods.php文件下面新增:
function getads($cat,$num)
{
$time = gmtime();
$sql = "SELECT * FROM " . $GLOBALS['ecs']->table('ad') . " where position_id=".$cat." and start_time <= '" . $time . "' AND end_time >= '" . $time . "' ORDER BY ad_id desc limit ".$num;
$res = $GLOBALS['db']->getAll($sql);
$arr = array();
...
阅读全文
+0°
微信支付支付成功后,返回到mobile/wx_native_callback.php
之前代码
define('IN_ECS', true);
require(dirname(__FILE__) . '/include/init.php');
require(ROOT_PATH . 'include/lib_payment.php');
require_once(ROOT_PATH .'include/modules/payment/wx_new_jspay.php');
$payment = new wx_new_qrcode();
$payment->respond();
exit;
修改后:
<?php
define('IN_ECTOUCH', true);
define('IN_...
阅读全文