partial #1723
This commit is contained in:
parent
9787831a22
commit
19385dae7f
@ -175,14 +175,14 @@ class Controller_api_twilio_sms extends Crunchbutton_Controller_Rest {
|
||||
|
||||
$support->makeACall();
|
||||
|
||||
if( $support->id_support ){
|
||||
$message .= ' http://cbtn.io/support/' . $support->id_support . '?r=1';
|
||||
}
|
||||
|
||||
// Log
|
||||
Log::debug( [ 'action' => 'sms action - support-ask', 'message' => $message, 'type' => 'sms' ] );
|
||||
|
||||
$support = Support::getByTwilioSessionId($tsess->id_session_twilio);
|
||||
|
||||
if( $support->id_support ){
|
||||
$message .= ' http://cbtn.io/support/' . $support->id_support . '?r=1';
|
||||
}
|
||||
|
||||
$b = $message;
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ class Crunchbutton_Support_Rep extends Cana_Table {
|
||||
public static function createSupportRep(){
|
||||
$admin = c::admin();
|
||||
$rep = new Crunchbutton_Support_Rep();
|
||||
$rep->name = c::admin()->name;
|
||||
$rep->name = c::admin()->login;
|
||||
$rep->phone = c::admin()->txt;
|
||||
$rep->active = 1;
|
||||
$rep->save();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user