$storeid]; if (!empty($data['cc_id'])) { $save_data['cc_id'] = $data['cc_id']; } if (!empty($data['introduction'])) { $save_data['introduction'] = $data['introduction']; } if (!empty($data['business'])) { $save_data['business'] = $data['business']; } if (!empty($data['advantage'])) { $save_data['advantage'] = $data['advantage']; } $query = pdo_get(PDO_NAME . 'wlmerchant_merchantdataent',['storeid' => $storeid]); if ($query) { $save_data['update_time'] = date("Y-m-d H:i:s",time()); pdo_update(PDO_NAME . 'wlmerchant_merchantdataent',$save_data,['id' => $query['id']]); } else { $save_data['create_time'] = date("Y-m-d H:i:s",time()); pdo_insert(PDO_NAME . 'wlmerchant_merchantdataent',$save_data); } } }