格式化一下代码
This commit is contained in:
parent
2488544363
commit
da8a512777
|
@ -64,13 +64,13 @@ class AgreementService extends BaseService
|
|||
$order->create_time = time();
|
||||
$order->save();
|
||||
} else {
|
||||
Sign::create(
|
||||
['user_id' => $userId,
|
||||
Sign::create([
|
||||
'user_id' => $userId,
|
||||
'open_id' => $user->open_id,
|
||||
'mobile' => $account,
|
||||
'request_serial' => $params['requestSerial'],
|
||||
'm_agreement_id' => $params['mAgreementId']]
|
||||
);
|
||||
'm_agreement_id' => $params['mAgreementId']
|
||||
]);
|
||||
// 创建订单
|
||||
$data = [
|
||||
'user_id' => $user->id,
|
||||
|
@ -346,6 +346,7 @@ class AgreementService extends BaseService
|
|||
}
|
||||
return ['success' => true];
|
||||
}
|
||||
|
||||
/**
|
||||
* 解约发送验证码
|
||||
* @throws BusinessException
|
||||
|
@ -370,6 +371,7 @@ class AgreementService extends BaseService
|
|||
$user = User::getUserById($userId);
|
||||
return ['mobile' => $user->mobile];
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断是否能兑换
|
||||
* @param array $params
|
||||
|
|
Loading…
Reference in New Issue