partial #1360
This commit is contained in:
parent
1e3b8b7378
commit
49b2bc481b
@ -169,9 +169,9 @@ class Crunchbutton_Promo extends Cana_Table
|
|||||||
|
|
||||||
public function queNotifySMS() {
|
public function queNotifySMS() {
|
||||||
$gift = $this;
|
$gift = $this;
|
||||||
c::timeout(function() use( $gift ) {
|
// c::timeout(function() use( $gift ) {
|
||||||
$gift->notifySMS();
|
$gift->notifySMS();
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
public function queNotifyEMAIL() {
|
public function queNotifyEMAIL() {
|
||||||
@ -241,7 +241,7 @@ class Crunchbutton_Promo extends Cana_Table
|
|||||||
'method' => '$promo->notifySMS()',
|
'method' => '$promo->notifySMS()',
|
||||||
'type' => 'promo_sms'
|
'type' => 'promo_sms'
|
||||||
]);
|
]);
|
||||||
/*
|
|
||||||
$env = c::env() == 'live' ? 'live' : 'dev';
|
$env = c::env() == 'live' ? 'live' : 'dev';
|
||||||
|
|
||||||
$twilio = new Twilio(c::config()->twilio->{$env}->sid, c::config()->twilio->{$env}->token);
|
$twilio = new Twilio(c::config()->twilio->{$env}->sid, c::config()->twilio->{$env}->token);
|
||||||
@ -279,7 +279,6 @@ class Crunchbutton_Promo extends Cana_Table
|
|||||||
$msg
|
$msg
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function find($search = []) {
|
public static function find($search = []) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user