feat: 新增用户真实姓名修改功能

This commit is contained in:
mkm 2024-06-17 17:45:34 +08:00
parent 13cbad9329
commit e6bd6a937d

View File

@ -57,6 +57,9 @@ class StoreController extends BaseApiController
$find=User::where('mobile',$params['mobile'])->find(); $find=User::where('mobile',$params['mobile'])->find();
if(!$find){ if(!$find){
$find=UserUserLogic::StoreAdd($params); $find=UserUserLogic::StoreAdd($params);
}else{
$find['real_name']=$params['real_name'];
$find->save();
} }
$data=[ $data=[
'store_id'=>$params['store_id'], 'store_id'=>$params['store_id'],