|
@@ -25,6 +25,7 @@ use common\models\OrderGoods;
|
|
|
use common\models\Region;
|
|
use common\models\Region;
|
|
|
use common\models\ShopGoods;
|
|
use common\models\ShopGoods;
|
|
|
use common\models\User;
|
|
use common\models\User;
|
|
|
|
|
+use console\helpers\Logger;
|
|
|
use Yii;
|
|
use Yii;
|
|
|
use yii\base\Exception;
|
|
use yii\base\Exception;
|
|
|
use yii\base\InvalidConfigException;
|
|
use yii\base\InvalidConfigException;
|
|
@@ -1923,6 +1924,7 @@ EOT;
|
|
|
</body>
|
|
</body>
|
|
|
</html>
|
|
</html>
|
|
|
ORDER;
|
|
ORDER;
|
|
|
|
|
+ Logger::trace($context);
|
|
|
|
|
|
|
|
require_once (\Yii::$app->vendorPath . '/tecnickcom/tcpdf/tcpdf.php');
|
|
require_once (\Yii::$app->vendorPath . '/tecnickcom/tcpdf/tcpdf.php');
|
|
|
|
|
|
|
@@ -1964,10 +1966,6 @@ ORDER;
|
|
|
// $pdf->Image('@' . $image, 15, 12, 20, 7, 'JPG');
|
|
// $pdf->Image('@' . $image, 15, 12, 20, 7, 'JPG');
|
|
|
$pdf->writeHTML($context);
|
|
$pdf->writeHTML($context);
|
|
|
|
|
|
|
|
- // 在输出PDF之前添加
|
|
|
|
|
- header("Cache-Control: no-cache, no-store, must-revalidate");
|
|
|
|
|
- header("Pragma: no-cache");
|
|
|
|
|
- header("Expires: 0");
|
|
|
|
|
$result = $pdf->Output($realFile, 'F');
|
|
$result = $pdf->Output($realFile, 'F');
|
|
|
|
|
|
|
|
$this->_updateFirst($realFile, 1);
|
|
$this->_updateFirst($realFile, 1);
|