findOrEmpty(); $res = QueueClient::buyerCertifyQueue($record); dump($res); } public function temp() { $stat = User::field(['id','father_id','grandfather_id'])->whereOr('grandfather_id','=',1)->whereOr('father_id','=',1)->select(); $son = $stat->where('father_id','=',1)->count(); $grandson = $stat->where('grandfather_id','=',1)->count(); dump($son); dump($grandson); } protected function isBankNum($value) { $arr_no = str_split($value); $last_n = $arr_no[count($arr_no)-1]; krsort($arr_no); $i = 1; $total = 0; foreach ($arr_no as $n){ if($i%2==0){ $ix = $n*2; if($ix>=10){ $nx = 1 + ($ix % 10); $total += $nx; }else{ $total += $ix; } }else{ $total += $n; } $i++; } $total -= $last_n; $x = 10 - ($total % 10); if($x == $last_n){ return true; }else{ return '请输入正确的银行卡号'; } } }