Exemplo n.º 1
0
 }
 //if($cd_Cumulative_amount['sum'] < 1000 && ($cd_Cumulative_amount['sum'] + $price_2_value) > 1000 ){
 $sms = new SMS("http://webservice.tongkni.co.kr/sms.3/ServiceSMS.asmx?WSDL");
 //SMS °´Ã¼ »ý¼º
 //
 if ($point_price) {
     //2015-10-23// $result=$sms->SendSMS("moamoa1234","yein6510","070-7201-0106",$mb3[mb_hp],substr($mb3['mb_name'],0,2).$sec_name." Ä«µåȸ¿øÀÌ ".$mc_mer['mc_subject']."¿¡¼­ Àû¸³ÇÑ Æ÷ÀÎÆ®(Ä«µåȸ¿ø) ".number_format(-1 * $point_price)."P °¡ Àû¸³Ãë¼Ò µÇ¾ú½À´Ï´Ù.");// 5°³ÀÇ ÀÎÀÚ·Î ÇÔ¼ö¸¦ È£ÃâÇÕ´Ï´Ù.
 }
 //¾÷ü
 $point_id = "#" . $sr[price_3_id];
 $point_price = $price_3_value;
 $price_3_id = $sr[price_3_id];
 if (!$is_testing) {
     insert_point($point_id, $point_price, "Àû¸³Æ÷ÀÎÆ®({$share_uniq}:°¡¸ÍÁ¡)", '@passive', $mb_id, $member[mb_id] . "-" . uniqid(""));
 }
 $mb2 = get_merchants($sr[price_3_id]);
 $mb2_mem = get_member($mb2[mb_id]);
 //Ä«µå¸¦¹ß±ÞÇØÁØ°¡¸ÍÁ¡À» ¼ÒÀ¯ÇÑ È¸¿øÀÇ ÀüÈ­¹øÈ£·Î ¹®ÀÚ (3)
 $sms = new SMS("http://webservice.tongkni.co.kr/sms.3/ServiceSMS.asmx?WSDL");
 //SMS °´Ã¼ »ý¼º
 if ($point_price) {
     //2015-10-23// $result=$sms->SendSMS("moamoa1234","yein6510","070-7201-0106",$mb2_mem[mb_hp],substr($mb3['mb_name'],0,2).$sec_name." Ä«µåȸ¿øÀÌ ".$mc_mer['mc_subject']."¿¡¼­ Àû¸³ÇÑ Æ÷ÀÎÆ®(°¡¸ÍÁ¡) ".number_format(-1 * $point_price)."P °¡ Àû¸³Ãë¼Ò µÇ¾ú½À´Ï´Ù.");// 5°³ÀÇ ÀÎÀÚ·Î ÇÔ¼ö¸¦ È£ÃâÇÕ´Ï´Ù.
 }
 //»ç¾÷ÀÚ
 //		$point_id = $sr[price_4_id]; 	$point_price = $price_4_value;
 //		$price_4_id = $point_id;
 //		if(!$is_testing) insert_point($point_id, $point_price, "Àû¸³Æ÷ÀÎÆ®($share_uniq:»ç¾÷ÀÚ)", '@passive', $mb_id, $member[mb_id]."-".uniqid(""));
 //		$mb1 = get_member($sr[price_4_id]);
 //		$sms = new SMS("http://webservice.tongkni.co.kr/sms.3/ServiceSMS.asmx?WSDL"); //SMS °´Ã¼ »ý¼º
 //		//
 //		$result=$sms->SendSMS("moamoa1234","yein6510","070-7201-0106",$mb1[mb_hp],substr($mb3['mb_name'],0,2).$sec_name." Ä«µåȸ¿øÀÌ ".$mc_mer['mc_subject']."¿¡¼­ Àû¸³ÇÑ Æ÷ÀÎÆ®(»ç¾÷ÀÚ) ".number_format(-1 * $point_price)."P °¡ Àû¸³Ãë¼Ò µÇ¾ú½À´Ï´Ù.");// 5°³ÀÇ ÀÎÀÚ·Î ÇÔ¼ö¸¦ È£ÃâÇÕ´Ï´Ù.
Exemplo n.º 2
0
 $msg_temp .= "<div style=\"border-bottom:4px dotted #999999; margin:5px 0 10px 0;\"></div>";
 $sms = new SMS("http://webservice.tongkni.co.kr/sms.3/ServiceSMS.asmx?WSDL");
 //SMS 객체 생성
 //
 if ($point_price) {
     //2015-10-23// $result=$sms->SendSMS("moamoa1234","yein6510","070-7201-0106",$mb3[mb_hp],substr($mb3['mb_name'],0,2).$sec_name." 카드회원이 ".$mc_mer['mc_subject']."에서 적립한 포인트(카드회원) ".number_format($point_price)."P 가 적립되었습니다.");// 5개의 인자로 함수를 호출합니다.
     $msg_temp .= "<div style='font-size:20px;line-height:25px;'>카드회원(" . $mb3[mb_name] . ")님 <span style='color:red'>" . $point_price . "P</span>";
 }
 //업체
 $point_id = "#" . $cd[mb_id2];
 $point_price = $price_3_value;
 $price_3_id = $cd[mb_id2];
 if (!$is_testing) {
     insert_point($point_id, $point_price, "적립포인트({$share_uniq}:가맹점)", '@passive', $mb_id, $member[mb_id] . "-" . uniqid(""));
 }
 $mb2 = get_merchants($cd[mb_id2]);
 $mb2_mem = get_member($mb2[mb_id]);
 //카드를발급해준가맹점을 소유한 회원의 전화번호로 문자 (3)
 $sms = new SMS("http://webservice.tongkni.co.kr/sms.3/ServiceSMS.asmx?WSDL");
 //SMS 객체 생성
 if ($point_price) {
     //2015-10-23// $result=$sms->SendSMS("moamoa1234","yein6510","070-7201-0106",$mb2_mem[mb_hp],substr($mb3['mb_name'],0,2).$sec_name." 카드회원이 ".$mc_mer['mc_subject']."에서 적립한 포인트(가맹점) ".number_format($point_price)."P 가 적립되었습니다.");// 5개의 인자로 함수를 호출합니다.
     $msg_temp .= "<br/>가맹점(" . $mb2[mc_subject] . ")님 <span style='color:red'>" . $point_price . "P</span>";
 }
 //관리사업자
 if ($mb2[mc_manager]) {
     $point_id = $mb2[mc_manager];
 } else {
     $point_id = "moa";
 }
 $point_price = $price_42_value;