Commit aa1297c1 by allen

修改对比的bug

parent d8d02b6a
Showing with 2 additions and 1 deletions
......@@ -96,10 +96,11 @@ Class AddOrderController extends Controller
$UserMainModel = new UserMainModel;
if(!empty($user_id) && strlen($request->input('user_id')<11 ) ){
if(!empty($user_id) && strlen($request->input('user_id'))<11 ){
$user = $UserMainModel->where('user_id', $user_id)->select('user_id', 'email','mobile', 'is_test')->orderBy('create_time', 'desc')->first();
}else{
die('aa');
if (preg_match('/@/', $mobile)) {
$user = $UserMainModel->where('email', $mobile)->select('user_id', 'email', 'is_test')->orderBy('create_time', 'desc')->first();
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment