ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9420


Ignore:
Timestamp:
Nov 27, 2008, 11:07:33 PM (11 years ago)
Author:
ogawa
Message:

#3159:PNEBIZのスケジュールお知らせメールの送信部分を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp_biz/modules/biz/lib/mysql_functions.php

    r9399 r9420  
    13621362        $send_list[$c_member_id][] = $value;
    13631363    }
    1364     $c_member = db_member_c_member4c_member_id($c_member_id, true);
    1365 
    1366     if (!empty($c_member['secure']['pc_address'])) {
    1367         // PCメールアドレスがある場合は、PCのみ送信
    1368         foreach ($send_list as $key => $value) {
    1369             $c_member_secure = db_member_c_member_secure4c_member_id($key);
     1364
     1365    foreach ($send_list as $c_member_id => $c_schedule_list) {
     1366        $c_member_secure = db_member_c_member_secure4c_member_id($c_member_id);
     1367        if (!empty($c_member_secure['pc_address'])) {
     1368            // PCメールアドレスがある場合は、PCのみ送信
    13701369            $pc_address = $c_member_secure['pc_address'];
    13711370
    13721371            $params = array(
    1373                 'c_member' => db_member_c_member4c_member_id_LIGHT($key),
    1374                 'c_schedule_list' => $value,
     1372                'c_member' => db_member_c_member4c_member_id_LIGHT($c_member_id),
     1373                'c_schedule_list' => $c_schedule_list,
    13751374            );
    1376         fetch_send_mail($pc_address, 'm_pc_schedule_mail', $params);
    1377         }
    1378     } else {
    1379         foreach ($send_list as $key => $value) {
    1380             $c_member_secure = db_member_c_member_secure4c_member_id($key);
     1375            fetch_send_mail($pc_address, 'm_pc_schedule_mail', $params);
     1376        } else {
     1377            // PCメールアドレスがない場合は、携帯のみ送信
    13811378            $ktai_address = $c_member_secure['ktai_address'];
    1382             // PCメールアドレスがない場合は、携帯のみ送信
    1383             $to = $c_member['secure']['ktai_address'];
    1384             $p = array('kad' => t_encrypt(db_member_username4c_member_id($c_member['c_member_id'], true)));
     1379
     1380            $p = array('kad' => t_encrypt(db_member_username4c_member_id($c_member_id, true)));
    13851381            $login_url = openpne_gen_url('ktai', 'page_o_login', $p);
    13861382
    13871383            $params = array(
    1388                 'c_member' => db_member_c_member4c_member_id_LIGHT($key),
    1389                 'login_url'   => $login_url,
    1390                 'c_schedule_list' => $value,
     1384                'c_member' => db_member_c_member4c_member_id_LIGHT($c_member_id),
     1385                'login_url' => $login_url,
     1386                'c_schedule_list' => $c_schedule_list,
    13911387            );
    13921388            fetch_send_mail($ktai_address, 'm_ktai_schedule_mail', $params);
     
    13941390    }
    13951391}
     1392
    13961393?>
Note: See TracChangeset for help on using the changeset viewer.