问题说明:积分订单小票打印内容有误
填写字段有误,字段代表的是金额不是积分
修改文件:crmeb\services\printer\storage\YiLianYun
修改方法:setIntegralPrinterContent()
/**
* 积分商城打印内容
* @param array $config
* @return YiLianYun
*/
public function setIntegralPrinterContent(array $config): self
{
$timeYmd = date('Y-m-d', time());
$timeHis = date('H:i:s', time());
$goodsStr = '<table><tr><td>商品名称</td><td>数量</td><td>单价</td><td>总积分</td></tr>';
$goodsStr .= '<tr>';
$goodsStr .= "<td>{$config['orderInfo']['store_name']}</td>
<td>{$config['orderInfo']['total_num']}</td>
<td>{$config['orderInfo']['integral']}</td>
<td>{$config['orderInfo']['total_integral']}</td>";
$goodsStr .= '</tr>';
$goodsStr .= '</table>';
$orderInfo = $config['orderInfo'];
$name = $config['name'];
$this->printerContent = <<<CONTENT
<FB><center> ** {$name} **</center></FB>
<FH2><FW2>----------------</FW2></FH2>
订单编号:{$orderInfo['order_id']}\r
日 期: {$timeYmd} \r
时 间: {$timeHis}\r
姓 名: {$orderInfo['real_name']}\r
电 话: {$orderInfo['user_phone']}\r
地 址: {$orderInfo['user_address']}\r
订单备注:{$orderInfo['mark']}\r
*************商品***************\r
{$goodsStr}
********************************\r
<FH>
<right>合计:{$orderInfo['total_integral']}积分</right>
</FH>
<FS><center> ** 完 **</center></FS>
CONTENT;
return $this;
}