作者 王晓刚
1 个管道 的构建 通过 耗费 2 秒

"请选择"问题

@@ -36,6 +36,7 @@ class SubjoinInsuranceModel extends Model @@ -36,6 +36,7 @@ class SubjoinInsuranceModel extends Model
36 ->join('cmf_order o','o_i.order_id = o.id') 36 ->join('cmf_order o','o_i.order_id = o.id')
37 ->where($where) 37 ->where($where)
38 ->whereOr($whereor) 38 ->whereOr($whereor)
  39 + ->order('c.create_time','desc')
39 // ->fetchSql() 40 // ->fetchSql()
40 ->select()->toArray(); 41 ->select()->toArray();
41 $new_data = []; 42 $new_data = [];
@@ -200,6 +200,7 @@ class HomeBaseController extends BaseController @@ -200,6 +200,7 @@ class HomeBaseController extends BaseController
200 200
201 public function number(){ 201 public function number(){
202 $user_count = Db::name('user')->where('user_type',2)->count(); 202 $user_count = Db::name('user')->where('user_type',2)->count();
  203 + echo $user_count;
203 if(count(str_split($user_count))+1>99999){ 204 if(count(str_split($user_count))+1>99999){
204 return 99999; 205 return 99999;
205 } 206 }
@@ -210,7 +211,7 @@ class HomeBaseController extends BaseController @@ -210,7 +211,7 @@ class HomeBaseController extends BaseController
210 $result .= "0"; 211 $result .= "0";
211 } 212 }
212 $result = $result.($user_count+1); 213 $result = $result.($user_count+1);
213 - return $result; 214 + echo $result;
214 } 215 }
215 public function template($templateId,$data,$url=null,$openid){ 216 public function template($templateId,$data,$url=null,$openid){
216 $options=config('wechat_config'); 217 $options=config('wechat_config');