作者 耿培杰

修改购物车接口

... ... @@ -201,4 +201,12 @@ function wpjam_array_push($array, $data=null, $key=false){
}else{ // 没指定 $key 或者找不到,就直接加到末尾
return array_merge($array, $data);
}
}
if (!function_exists('cal_days_in_month'))
{
function cal_days_in_month($calendar, $month, $year)
{
return date('t', mktime(0, 0, 0, $month, 1, $year));
}
}
\ No newline at end of file
... ...
... ... @@ -121,8 +121,8 @@ class Api
$this->userId = $user['id'];
}
$lang = $this->request->header('lang');
// if (empty($lang)) $this->error('缺少lang!');
$this->lang = $lang;
if (empty($lang)) $this->lang = 'ch'; //$this->error('缺少lang!');
else $this->lang = $lang;
/*if (Config::get('url_domain_deploy')) {
$domain = Route::rules('domain');
if (isset($domain['api'])) {
... ...