Images.php
589 Bytes
<?php
/**
* Created by PhpStorm.
* User: Ziy
* Date: 14/9/5
* Time: 上午12:36
*/
class YHMIm_Agreement_Base_Images extends YHMIm_Agreement_Abstract
{
function make()
{
$body = $this->getQueueDataBody();
$imagePath = $body['image_path'];
$imageUrl = '';
if (!empty($imagePath)) {
$imageUrl = YHMUpload_Images::template($imagePath, 'yhfair-im');
}
$this->queueData['body'] = array(
'text' => $body['text'],
'image_url' => $imageUrl,
'image_path' => $imagePath
);
}
}