feat: 修改 IndexController 中的订单号
This commit is contained in:
parent
2524a5766c
commit
883847e49d
@ -29,7 +29,7 @@ class IndexController extends BaseApiController
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$order = [
|
$order = [
|
||||||
'out_trade_no' => 'CZ1719199275922103',
|
'out_trade_no' => 'CZ1719197818549414',
|
||||||
];
|
];
|
||||||
$app = new PayService(0);
|
$app = new PayService(0);
|
||||||
|
|
||||||
|
@ -441,6 +441,16 @@ class LoginLogic extends BaseLogic
|
|||||||
*/
|
*/
|
||||||
public static function updateUser($params, $userId)
|
public static function updateUser($params, $userId)
|
||||||
{
|
{
|
||||||
|
$find=User::where(['mobile' =>$params['mobile']])->find();
|
||||||
|
if($find){
|
||||||
|
$auth=UserAuth::where('user_id',$find['id'])->find();
|
||||||
|
if($auth){
|
||||||
|
self::$error ='该手机号已被绑定';
|
||||||
|
return false;
|
||||||
|
}else{
|
||||||
|
UserAuth::where('user_id',$userId)->update(['user_id'=>$find['id']]);
|
||||||
|
}
|
||||||
|
}
|
||||||
$data=[
|
$data=[
|
||||||
'mobile'=>$params['mobile'],
|
'mobile'=>$params['mobile'],
|
||||||
'is_new_user' => YesNoEnum::NO
|
'is_new_user' => YesNoEnum::NO
|
||||||
|
Loading…
x
Reference in New Issue
Block a user