메시지 입력 버그 수정 중
This commit is contained in:
+2
-2
@@ -31,7 +31,7 @@ var generalList = {};
|
|||||||
|
|
||||||
function responseMessage(msgID, response){
|
function responseMessage(msgID, response){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'prompt_dummy.php',
|
url: 'j_decide_opt.php',
|
||||||
type: 'post',
|
type: 'post',
|
||||||
dataType:'json',
|
dataType:'json',
|
||||||
contentType: 'application/json',
|
contentType: 'application/json',
|
||||||
@@ -334,7 +334,7 @@ function activateMessageForm(){
|
|||||||
|
|
||||||
if(text){
|
if(text){
|
||||||
deferred = $.ajax({
|
deferred = $.ajax({
|
||||||
url:'add_msg_dummy.php',
|
url:'j_msg_submit.php',
|
||||||
type: 'post',
|
type: 'post',
|
||||||
dataType:'json',
|
dataType:'json',
|
||||||
contentType: 'application/json',
|
contentType: 'application/json',
|
||||||
|
|||||||
@@ -32,7 +32,10 @@ class MessageTarget extends Target {
|
|||||||
$this->icon = $icon;
|
$this->icon = $icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function buildFromArray(array $arr) : MessageTarget
|
/**
|
||||||
|
* @return MessageTarget
|
||||||
|
*/
|
||||||
|
public static function buildFromArray($arr)
|
||||||
{
|
{
|
||||||
if(!$arr){
|
if(!$arr){
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -13,7 +13,10 @@ class Target {
|
|||||||
$this->nationID = $nationID;
|
$this->nationID = $nationID;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function buildFromArray(array $arr) : Target
|
/**
|
||||||
|
* @return Target
|
||||||
|
*/
|
||||||
|
public static function buildFromArray($arr)
|
||||||
{
|
{
|
||||||
return new Target($arr['id'], $arr['nation_id']??0);
|
return new Target($arr['id'], $arr['nation_id']??0);
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-4
@@ -59,11 +59,19 @@ class AppConf
|
|||||||
return DB::db();
|
return DB::db();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getUserIconPathFS() : string{
|
public static function getUserIconPathFS(string $filepath='') : string{
|
||||||
return ROOT.'/'.static::$userIconPath;
|
$path = ROOT.'/'.static::$userIconPath;
|
||||||
|
if($filepath){
|
||||||
|
$path .= '/'.$filepath;
|
||||||
|
}
|
||||||
|
return $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getUserIconPathWeb() : string{
|
public static function getUserIconPathWeb(string $filepath='') : string{
|
||||||
return ServConfig::$serverWebPath.'/'.static::$userIconPath;
|
$path = ServConfig::$serverWebPath.'/'.static::$userIconPath;
|
||||||
|
if($filepath){
|
||||||
|
$path .= '/'.$filepath;
|
||||||
|
}
|
||||||
|
return $path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user