create one item for mission and fix in another table
This commit is contained in:
@@ -12,28 +12,28 @@ class SmsClass
|
||||
{
|
||||
public function sendSms($mobile, $msg)
|
||||
{
|
||||
if (App::environment('production')) {
|
||||
|
||||
|
||||
$client = new SoapClient("http://172.30.5.36/webservice/sms.asmx?WSDL");
|
||||
$date = date('d-m-y h:i:s');
|
||||
$date = str_replace(" ", "T", $date);
|
||||
$result = $client->Send(
|
||||
array(
|
||||
'Username' => 'admin',
|
||||
'Password' => 'admin141',
|
||||
'ShortCode' => '1000141',
|
||||
'Cellphones' => $mobile,
|
||||
'Message' => $msg,
|
||||
'Farsi' => true,
|
||||
// 'SendDate' => $date
|
||||
// 'uTopic' => false,
|
||||
// 'uFlash' => false
|
||||
)
|
||||
);
|
||||
|
||||
return $result->SendResult;
|
||||
}
|
||||
// if (App::environment('production')) {
|
||||
//
|
||||
//
|
||||
// $client = new SoapClient("http://172.30.5.36/webservice/sms.asmx?WSDL");
|
||||
// $date = date('d-m-y h:i:s');
|
||||
// $date = str_replace(" ", "T", $date);
|
||||
// $result = $client->Send(
|
||||
// array(
|
||||
// 'Username' => 'admin',
|
||||
// 'Password' => 'admin141',
|
||||
// 'ShortCode' => '1000141',
|
||||
// 'Cellphones' => $mobile,
|
||||
// 'Message' => $msg,
|
||||
// 'Farsi' => true,
|
||||
// // 'SendDate' => $date
|
||||
// // 'uTopic' => false,
|
||||
// // 'uFlash' => false
|
||||
// )
|
||||
// );
|
||||
//
|
||||
// return $result->SendResult;
|
||||
// }
|
||||
|
||||
|
||||
// $client = new SoapClient("http://sms1000.ir/webservice/smspro.asmx?WSDL");
|
||||
|
||||
Reference in New Issue
Block a user