修复错误
This commit is contained in:
parent
5243005944
commit
2c6bbbab91
@ -191,8 +191,6 @@ class UserController extends BaseApiController
|
|||||||
public function postsms()
|
public function postsms()
|
||||||
{
|
{
|
||||||
$params = $this->request->param();
|
$params = $this->request->param();
|
||||||
$params['mobile']=$this->userInfo['mobile'];
|
|
||||||
$params['nickname']=$this->userInfo['nickname'];
|
|
||||||
$res = CommonUserLogic::postsms($params);
|
$res = CommonUserLogic::postsms($params);
|
||||||
if ($res == true) {
|
if ($res == true) {
|
||||||
return $this->success('发送成功', [], 1, 1);
|
return $this->success('发送成功', [], 1, 1);
|
||||||
|
@ -196,11 +196,12 @@ class UserLogic extends BaseLogic
|
|||||||
return Db::name('dict_data')->where('id', $data['contract_type'])->value('name');
|
return Db::name('dict_data')->where('id', $data['contract_type'])->value('name');
|
||||||
})
|
})
|
||||||
->find();
|
->find();
|
||||||
|
$user = User::where('id', $params['id'])->find();
|
||||||
if ($find) {
|
if ($find) {
|
||||||
//发送短信
|
//发送短信
|
||||||
$sms = [
|
$sms = [
|
||||||
'mobile' => $params['mobile'],
|
'mobile' => $user['mobile'],
|
||||||
'name' => $params['nickname'],
|
'name' => $user['nickname'],
|
||||||
'type' => '《' . $find['contract_type_name'] . '》',
|
'type' => '《' . $find['contract_type_name'] . '》',
|
||||||
'code' => 'api/Hetong/url?id=' . $find['id'],
|
'code' => 'api/Hetong/url?id=' . $find['id'],
|
||||||
'scene' => 'WQ'
|
'scene' => 'WQ'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user