2021-04-05 4.5 4.5 1.protected function assign($var,$value=null){ if(is_array($var)){ $this->data=array_merge($this->data,$var); }else{ $this->data[$var]=$value; } }2.// 访客统计 $today=strtotime(date('Y-m-d')); $yesterday=strtotime(date('Y-m-d',strtotime('-1 day')));3.// 今日订单 $data['order_today']=$db->count('order',['atime[>=]'=>$today]); $money_today=$db->sum('order','productmoney',['atime[>=]'... 2021年04月05日 585 阅读 0 评论