update
This commit is contained in:
parent
e8bf3fbe63
commit
73abacefad
@ -55,6 +55,21 @@ class ContractController extends BaseAdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function sendSmsAgain() {
|
||||||
|
//获取参数
|
||||||
|
$id = $this->request->post('id');
|
||||||
|
if(empty($id)){
|
||||||
|
return $this->fail('参数错误');
|
||||||
|
}
|
||||||
|
//获取数据
|
||||||
|
$contract = Contract::where('id',$id)->find();
|
||||||
|
if(empty($contract)){
|
||||||
|
return $this->fail('数据错误');
|
||||||
|
}
|
||||||
|
$this->sendSms($id);
|
||||||
|
return $this->success('发送成功');
|
||||||
|
}
|
||||||
|
|
||||||
public function sendSms($id) {
|
public function sendSms($id) {
|
||||||
//获取合同数据
|
//获取合同数据
|
||||||
$contract = Contract::where('id',$id)->find();
|
$contract = Contract::where('id',$id)->find();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user