Commit 8086d3ae authored by 冯超鹏's avatar 冯超鹏

uinapp邮箱验证

parent 2d3463e7
Pipeline #142 canceled with stages
...@@ -109,6 +109,17 @@ class UinappHomeController extends Controller ...@@ -109,6 +109,17 @@ class UinappHomeController extends Controller
return $this->jsonSuccessData(['devicetype' => $devicetypecount, 'gas' => $gas, 'danwei' => $danwei]); return $this->jsonSuccessData(['devicetype' => $devicetypecount, 'gas' => $gas, 'danwei' => $danwei]);
} }
public function isemail(Request $request)
{
$isemail = $request->input('email');
$data = DB::table('users')->where('email','=',$isemail)->first();
if($data){
return $this->jsonSuccessData(1);
}else{
return $this->jsonSuccessData(2);
}
}
//监测是否是汉子 //监测是否是汉子
private function isKanji($str) private function isKanji($str)
{ {
......
...@@ -126,6 +126,7 @@ Route::group(['middleware'=>'auth:api'],function (){ ...@@ -126,6 +126,7 @@ Route::group(['middleware'=>'auth:api'],function (){
Route::post('huinapphome/imitation','UinappHomeController@imitation');//模糊查询 Route::post('huinapphome/imitation','UinappHomeController@imitation');//模糊查询
Route::post('huinapphome/setseachdata','UinappHomeController@setseachdata');//指定查询 Route::post('huinapphome/setseachdata','UinappHomeController@setseachdata');//指定查询
Route::get('huinapphome/devicetype','UinappHomeController@devicetype');//测试添加页面选择数组数据 Route::get('huinapphome/devicetype','UinappHomeController@devicetype');//测试添加页面选择数组数据
Route::post('huinapphome/isemail','UinappHomeController@isemail');//邮箱验证
}); });
// Fake APIs // Fake APIs
......
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 to comment