原因說(shuō)明:小票打印中,小票上不展示支付方式問題
修復(fù)文件:app\services\message\SystemPrinterServices
修改方法:ylyContent()【代碼無(wú)法粘貼,請(qǐng)下載下面文件包,復(fù)制包里文件方法內(nèi)容】
修改方法:feyContent()【代碼無(wú)法粘貼,請(qǐng)下載下面文件包,復(fù)制包里文件方法內(nèi)容】
門店碼問題修改:
修改文件:app\controller\store\system\SystemPrinter
修改方法:savePrintContent()
public function savePrintContent($id)
{
$data = $this->request->postMore([
['scene', 1], // 1 普通 2 桌碼
['header', []],
['delivery', []],
['buyer_remarks', 0],
['goods', []],
['freight', 0],
['preferential', []],
['pay', []],
['custom', 0],
['order', []],
['code', 0],
['code_url', ''],
['show_notice', 0],
['notice_content', '']
]);
if (!$id) app('json')->fail('參數(shù)有誤!');
$scene = $data['scene'] ?? 1;
if($data['code'] && !$data['code_url']) {
$data['code_url'] = "/pages/store/home/index?id=" . $this->storeId;
}
$this->services->savePrintContent($id, $data, $scene);
return app('json')->success('保存成功');
}