...
|
...
|
@@ -1877,6 +1877,7 @@ class User extends Api |
|
|
//发送短信
|
|
|
|
|
|
$send->sms($mobile,$content);
|
|
|
$res_info['url'] = $pic['url'];
|
|
|
|
|
|
}elseif (empty($order_info['pic_id'])){
|
|
|
$video_id = unserialize($order_info['video_id']);
|
...
|
...
|
@@ -1885,20 +1886,26 @@ class User extends Api |
|
|
$mobile = $user['mobile'];
|
|
|
if($video_id['attr'] == 1){
|
|
|
$content = "【仁甲看见SHOP】,感谢您购买仁甲看见SHOP素材。视频标题:$video[title],云盘地址:$video[two_url]";
|
|
|
$res_info['url'] = $video['two_url'];
|
|
|
}elseif ($video_id['attr'] == 2){
|
|
|
$content = "【仁甲看见SHOP】,感谢您购买仁甲看见SHOP素材。视频标题:$video[title],云盘地址:$video[four_url]";
|
|
|
$res_info['url'] = $video['four_url'];
|
|
|
}elseif ($video_id['attr'] == 3){
|
|
|
$content = "【仁甲看见SHOP】,感谢您购买仁甲看见SHOP素材。视频标题:$video[title],云盘地址:$video[eight_url]";
|
|
|
$res_info['url'] = $video['eight_url'];
|
|
|
}
|
|
|
//发送短信
|
|
|
$send->sms($mobile,$content);
|
|
|
|
|
|
}
|
|
|
Db::commit();
|
|
|
} catch (\Exception $e) {
|
|
|
// 回滚事务
|
|
|
Db::rollback();
|
|
|
}
|
|
|
$this->success('success');
|
|
|
|
|
|
|
|
|
$this->success('success',$res_info);
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|