$pmId = $pmList[0]['pmName']; } if (empty($purchaseId)) { $purchaseId = "<span style='color:red'>无</span>"; } else { $purchaseId = getPersonNameById($purchaseId); } if (empty($goodsCategory)) { $goodsCategory = "<span style='color:red'>无</span>"; } else { $goodsCategory = getAllCateNameByPath($goodsCategory); } $tdIndex = $index + 1; $table .= "<tr><td>{$tdIndex}</td><td>{$sku}</td><td>{$goodsWeight}</td><td>{$pmId}</td><td>{$purchaseId}</td><td>{$goodsCategory}</td></tr>"; } $table .= "</table>"; $table .= '<p style="' . $css_height . '">欲知所有问题料号,请联系产品中心负责人。详情请登录:<a href="' . $system_url . '" target="_blank">' . $system_name . '</a><br/></br>' . date('Y-m-d', $endTime) . '<br/>' . $system_name . '</p>'; //$table = '1111111'; echo $table . "\n"; echo 'table length = ' . strlen($table) . "\n"; echo 'table urlencode length = ' . strlen(urlencode($table)) . "\n"; $paramArr = array("sysName" => 'ProductCenter', "from" => $from, "to" => $to, "cc" => $cc, "type" => $type, "title" => $title, "content" => $table); $message = UserCacheModel::getOpenSysApiPost('notice.send.message', $paramArr, ''); //get //$message = UserCacheModel :: getOpenSysApiPost('notice.send.message', $paramArr,'gw88');//post echo 'message = '; var_dump($message); echo "\n"; //echo $message, "\n"; echo "完成时间" . date('Y-m-d H:i:s', time()) . "\n"; exit;
function getNewGoodsArr($skuArray, $storeId) { //print_r($skuArray); // print_r($storeId); // exit; if (empty($skuArray) || !is_array($skuArray) || intval($storeId) <= 0) { return false; } $array = array('skuArr' => gzdeflate(json_encode($skuArray)), 'storeId' => $storeId); $newGoodsArr = UserCacheModel::getOpenSysApiPost('wh.detectSkuStoreInfo', $array, 'gw88'); print_r($newGoodsArr); exit; if (isset($newGoodsArr['errCode']) && $newGoodsArr['errCode'] == 0) { return json_decode($newGoodsArr['data'], true); } return array(); }